Mapping ManyToMany with composite Primary key and Annotation?

If you can, I'd seriously suggest removing the composite keys. Worth with simple primary keys can both make a lot of problems go away and simplify your code. I have used composite keys in a database in the past because I had no ability to modify the db.

Unfortunately I don't have the code. But I do remember it took some work to get it all working correctly. Sorry, can't help more.

I've solved this problem and my code works now perfect. Although, this is tricky to get bernate work with Composite Primary keys, I think it is useful in special cases where we need to guarantee that there will only be exactly one row per combination in a Many to Many relation. – danny.

Lesnik Jun 20 at 17:25.

I solved this issue. I mapped item instead of getter. Public class StudentTClass { //@EmbeddedId private StudentTClassPK pk = new StudentTClassPK(); @EmbeddedId public StudentTClassPK getPk() { return pk; }.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions