1600 PMP mock questions 1400 CAPM mock questions 800 SCJP 6 mock questions 600 OCAJP 7 mock questions 590 OCPJP 7 mock questions 556 SCWCD 5 mock questions 500 OCEJWCD 6 mock questions pdfDownload (java,struts, hibernet etc)
 

Recent Questions

!!! Hibernate Frequently Asked Questions !!!

What are the Instance states in Hibernate?

!!!Answer!!!- From Technical Expert

transient
The instance is not, and has never been associated with any persistence context. It has no persistent identity
(primary key value).
persistent
The instance is currently associated with a persistence context. It has a persistent identity (primary key
value) and, perhaps, a corresponding row in the database. For a particular persistence context, Hibernate
guarantees that persistent identity is equivalent to Java identity (in-memory location of the object).
detached
The instance was once associated with a persistence context, but that context was closed, or the instance
was serialized to another process. It has a persistent identity and, perhaps, a corrsponding row in the database.
For detached instances, Hibernate makes no guarantees about the relationship between persistent
identity and Java identity.

Answered By : asdfsd Replied Date : May 24 2012
Answer : FFFFFFFFF CCCCCCCCCC UUUUUUU KKKKKKKKKKKKK


Answered By : null Replied Date : Feb 4 2014
Answer :


Answered By : null Replied Date : Feb 3 2014
Answer :


Answered By : null Replied Date : Feb 2 2014
Answer :


Answered By : sambhav Replied Date : Dec 26 2013
Answer : Hibernate defines and supports the following object states:

Transient - an object is transient if it has just been instantiated using the new operator, and it is not associated with a Hibernate Session. It has no persistent representation in the database and no identifier value has been assigned. Transient instances will be destroyed by the garbage collector if the application does not hold a reference anymore. Use the Hibernate Session to make an object persistent (and let Hibernate take care of the SQL statements that need to be executed for this transition).
Persistent - a persistent instance has a representation in the database and an identifier value. It might just have been saved or loaded, however, it is by definition in the scope of a Session. Hibernate will detect any changes made to an object in persistent state and synchronize the state with the database when the unit of work completes. Developers do not execute manual UPDATE statements, or DELETE statements when an object should be made transient.
Detached - a detached instance is an object that has been persistent, but its Session has been closed. The reference to the object is still valid, of course, and the detached instance might even be modified in this state. A detached instance can be reattached to a new Session at a later point in time, making it (and all the modifications) persistent again. This feature enables a programming model for long running units of work that require user think-time. We call them application transactions, i.e., a unit of work from the point of view of the user.
We will now discuss the states and state transitions (and the Hibernate methods that trigger a transition) in more detail.


Answered By : null Replied Date : Dec 20 2013
Answer :


Answered By : null Replied Date : Nov 23 2013
Answer :


Answered By : null Replied Date : Nov 13 2013
Answer :


Answered By : null Replied Date : Nov 3 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 2 2013
Answer :


Answered By : null Replied Date : Nov 1 2013
Answer :


Answered By : null Replied Date : Oct 31 2013
Answer :


Answered By : null Replied Date : Oct 24 2013
Answer :


Answered By : null Replied Date : Oct 9 2013
Answer :


Answered By : null Replied Date : Feb 4 2014
Answer :


Answered By : null Replied Date : Feb 7 2014
Answer :


Answered By : null Replied Date : May 5 2014
Answer :


Answered By : null Replied Date : May 10 2014
Answer :


Answered By : null Replied Date : May 13 2014
Answer :


Answered By : null Replied Date : May 15 2014
Answer :


Answered By : null Replied Date : Jun 1 2014
Answer :


Answered By : null Replied Date : Aug 1 2014
Answer :


Answered By : null Replied Date : Aug 2 2014
Answer :


Answered By : null Replied Date : Aug 19 2014
Answer :


Answered By : null Replied Date : Sep 5 2014
Answer :


Answered By : null Replied Date : Sep 20 2014
Answer :


Answered By : null Replied Date : Sep 28 2014
Answer :


Answered By : null Replied Date : Nov 3 2014
Answer :


Answered By : null Replied Date : Nov 4 2014
Answer :


Answered By : null Replied Date : Dec 4 2014
Answer :


Answered By : null Replied Date : Dec 5 2014
Answer :


Answered By : null Replied Date : Dec 5 2014
Answer :


Answered By : null Replied Date : Dec 6 2014
Answer :


Answered By : null Replied Date : Dec 9 2014
Answer :


Answered By : null Replied Date : Dec 25 2014
Answer :


Answered By : null Replied Date : Dec 27 2014
Answer :


Answered By : null Replied Date : Jan 14 2015
Answer :


Answered By : null Replied Date : Jan 16 2015
Answer :


Answered By : null Replied Date : Feb 20 2015
Answer :


Answered By : null Replied Date : Apr 13 2015
Answer :


Answered By : null Replied Date : May 25 2015
Answer :


Answered By : null Replied Date : Jun 14 2015
Answer :


Answered By : null Replied Date : Aug 21 2015
Answer :


Answered By : null Replied Date : Sep 28 2015
Answer :


Answered By : null Replied Date : Nov 13 2015
Answer :


Answered By : null Replied Date : Feb 2 2016
Answer :


Answered By : null Replied Date : Apr 3 2016
Answer :


Answered By : null Replied Date : Apr 3 2016
Answer :


Answered By : null Replied Date : May 17 2016
Answer :


Answered By : Abhishek Replied Date : Sep 30 2016
Answer : "Transient
"    Persistent     "
Detached "


Answered By : null Replied Date : Mar 23 2017
Answer :


Answered By : null Replied Date : Jul 31 2017
Answer :


 

You can also contribute to this answer:

Your Name:
Answer:

 
Ask Question and get answer from Expert.
View Answers List from Expert.

Reviews and Comments


PMP, CAPM, PMI is a registered certification mark of the Project Management Institute, Inc

Copyright © www.techfaq360.com 2016


About US | Contact US | Privacy Policy | Terms and Conditions  | Website disclaimer  | Cancellation and Refund Policy  | Shipping & Delivery Policy