LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   hibernate - how to tell if an entity is new or not? (https://www.linuxquestions.org/questions/programming-9/hibernate-how-to-tell-if-an-entity-is-new-or-not-4175495542/)

eantoranz 02-19-2014 03:03 PM

hibernate - how to tell if an entity is new or not?
 
Hi!

I'm wondering how to tell if an entity is new or has already been persisted? The things I have at hand are the entity itself and the sessionFactory.

Thanks in advance.


All times are GMT -5. The time now is 07:03 AM.