Anyone knows how to do hibernate mapping for table or view without a primary key?
thanks.
Anyone knows how to do hibernate mapping for table or view without a primary key?
thanks.
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.