본문 바로가기

분류 전체보기93

[Spring] cannot reliably process 'remove' call; nested exception is javax.persistence.TransactionRequiredException: No EntityManager with actual transaction available for current thread - cannot reliably process 'remove' call 에러 안녕하세요 질서정연 입니다. 👻 https://stackoverflow.com/questions/32269192/spring-no-entitymanager-with-actual-transaction-available-for-current-thread Spring - No EntityManager with actual transaction available for current thread - cannot reliably process 'persist' call I get this error when trying to invoke "persist" method to save entity model to database in my Spring MVC web application. Can't really fi.. 2022. 3. 9.
[TypeScript] object is possibly 'null' 에러 해결법 안녕하세요 질서정연입니다. 👻 제가 분명 저렇게 container를 선언 했는데 Error: src/app/app.component.ts:108:5 - error TS2531: Object is possibly 'null'. 라는 에러가 나더라고요 바로 구글링 해 봤습니다. https://stackoverflow.com/questions/43951090/typescript-object-is-possibly-null 2022. 3. 8.
스테이트 패턴(State Pattern) 목적: 객체의 내부 상태가 바뀔 때 객체의 동작을 변경할 수 있도록 함. 객체는 자신의 클래스를 바꾸는 것처럼 보임 State(상태) : 시점에 따라 특정 상태에 있어야함. 처음에 가지게 되는 초기상태 (state)또는 상황에 따라 여러 상태 가운데한 상태를 가질 수 있음. Transition(전이) : 외부 입력에 따라 가능한 상태로 전환 상태(state)가 여러 개 있고 , if 문으로 상태를 통제했던 것을 상태를 한 곳에서 관리하고 변경을 최소화 할 수 있도록 한다. 상태표시를 정수로 하던 것을 상태 객체를 사용하는 것으로 변경한다. 상태를 별도의 클래스로 캡슐화 한 다음, 현재 상태를 나타내는 객체에게 행동을 위임한다. 2020. 12. 8.
Attributes type : 어트리뷰트 타입, 어트리뷰트 종류. •An entity is represented by a set of attributes >Example: a instructor entity= {(ID,76766), (name, Crick), (dept_name, Biology), (salary, 72000)} a instructor entity= {(ID,45565), (name, Katz), (dept_name, Physics), (salary, 55000)} entity는 어트리뷰트의 집합으로 나타난다. •Domain – the set of permitted values for each attribute >Semester -> {Fall, Winter, Spring, Summer} >course_id -> the set of all text str.. 2020. 12. 7.