I want to fetch the rowID of a table that does not have a primary key. I could get the rowId using sql query.But i think RowID is database specific.So it is not going to work if the database changes.
Could someone help me to get the rowID either using hql or criteria ?