1. Call Back Interfaces
These interfaces are helpful to receive notifications about changing state of an object such as saved , loaded , deleted.
There is no need to implement callback interfaces in hibernate.
2. which connection pooling is by default supported by hibernate.
c3p connection pooling.
3. states of an object in hibernate .
1. persistence - when an object is attached to a hibernate session.Any changes in this object will be reflected on database either upon automatic flush or using session.flush() method.
2. Detached- An object which was previously attached to a session but not now.This object can be reattached to a session using session.merge() method,save(),saveorupdate() methods.
3. Transient -This is a newly created object which was never attached to a session .Persist () or save() method sends this object to persistence state.
3. states of an object in hibernate .
1. persistence - when an object is attached to a hibernate session.Any changes in this object will be reflected on database either upon automatic flush or using session.flush() method.
2. Detached- An object which was previously attached to a session but not now.This object can be reattached to a session using session.merge() method,save(),saveorupdate() methods.
3. Transient -This is a newly created object which was never attached to a session .Persist () or save() method sends this object to persistence state.
Difference between Application Server and Web server
How to reverse a string in java
Difference between equals() and = =
How to reverse a string in java
Difference between equals() and = =
No comments:
Post a Comment