arkhls
asked on
How can I do Hibernate mapping for View that does not have ID or primary key ?
I'm trying to do hibernate mapping for Views , The views that I have basically selecting data out of 3 diifferent database sand they are all SELECT statament and there is no Primary key
I 'm in trouble to make a hibernate mapping for those views beucase I need to joint the views with tables in my database tables
I 'm in trouble to make a hibernate mapping for those views beucase I need to joint the views with tables in my database tables
don't think you can, you'll need to add a primary key.
hibernate require unique id. unique ids are main part that differentiate different persistent objects
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
.
ASKER
.
ASKER
I fixed that on my own and commented as solution for this issue
ASKER