What happens with Entities in session if I make rollback ? Do they get back to the state before transaction ? In particular do they get new ids ?
Example:
All managed entites will become detached.
Unless you are using an extended persistence context, rolling back also ends the persistence context.
(see OpenJPA docs: http://openjpa.apache.org/documentation.html)