How to check if entiti to save exists in database?
Hi,
according to your example with Store, Product and Employee I have a question. How can I chceck if entity Store with name for example "TestStore" exists in table Store before saving or updating session?
Comments are currently closed for this discussion. You can start a new one.
Support Staff 2 Posted by James Gregory on 12 Mar, 2010 09:19 AM
You'll need to query for it. Have a read up on the criteria API or HQL.
James Gregory closed this discussion on 18 Mar, 2010 12:20 PM.