사례 A : 세션이 닫히지 않았으며 객체 tag
이 지속 상태이고 태그 객체가 현재 세션에 연결되어 있습니다.
사례 B : 여기서 세션은 첫 번째 트랜잭션과 동일 할 수 있으며, 지속 상태에있는 tag
개체의 값을 변경합니다. Persistent state represents existence of object in permanent storage. There will be connection between the object in memory and in database through the identifier. Any change in either of these two will be reflected in other (when transaction is committed). Persistent state is dependent on session object. First, session has to be open (unclosed)
, and second, the object has to be connected to the session. If either of these two is not true, then the object moves into either transient state or detached stage.
객체는 다음과 같은 경우에 분리 된 상태에서 [이 귀하의 경우 사실이다] :
Hibernate는 객체의 세 가지 상태 구분 : 객체의 상태에 대한 Detached state arises when a persistent state object is not connected to a session object. No connection may be because the session itself is closed or the object is moved out of session.