The states of an object in hibernate are:
Transient: The objects that are just created having no primary key are in a transient state. Here the objects are associated with any session.
Persistent: When the session of an object is just opened and its instance is just saved or retrieved, it is said to be in a persistent state.
Detached: When the session of an object is closed, it is said to be in a detached state.