Hi,
im kinda testing arround with this stuff and have 2 questions which i didn't find an answer yet.
My first quetsion is how can i tell with annotation that i have 2 primary keys in my class for e.g. in SQL:
Code:
..
PRIMARY KEY (ID,NR)
...
my second question is a suggestion from me and im not sure if im going in a wrong direction with it. I really like how you can use hibernate with jpa to fill up a collection in a onetomany relation (e.g. fetch=FetchType.EAGER).
Now i tought it would be great if i could tell it somehow when i do remove() or add() an obj on this collection he will also do a update on the database. Is there a way to make this ?