title: How to identify an object is transient or detached in hibernate?
body: <p>I know that transient instance means the instance is newly created and its corresponding row does not exist in the database where as detached instance has corresponding entry in the database but not associated with any session at present. </p>
  
  <p>Is there any way to identify an object is transient or detached using any methods on Session or something else in hibernate programatically?</p>