Quote:
I am unable to persist data for a table where i dont have a primary key or unique key. how do i store data in such a case.I will be checking this on application side.
Create a composite-id of some (all if necessary) properties and use generator="assigned"
Please note, that you have to write an isDirty Intercpetor if you want to use saveOrUpdate or cascading.
Quote:
Does the session class have a method to retrieve data that is not based on primary key or unique id
session.createQuery ...
HTH
Ernst