how to do hibernate mapping for table or view without a primary key
hibernate, java, jdbc
Solution
Don't think Hibernate allows mapping a table without a primary key...think about how Hibernate would perform updates without a column that can uniquely identify a row.
I guess a work-around would be to use a composite key with all columns, but you are much better off adding a primary key.
Problem
Possible Duplicate: Hibernate and no PK Anyone knows how to do hibernate mapping for table or view without a primary key?