This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
Problem, add new records in a many-to-many relation
babak behzadi
Greenhorn
Joined: Sep 02, 2012
Posts: 1
posted
0
Hi,
I have two entities 'Person' and 'Team' which are mapped by a bidirectional many-to-many relation using annotations, as follow:
,
my service class{1, 2: According to 'Christian Bauer and Gavin King, Java Persistence with Hibernate by Manning Publication Co. Page 301, P 2'}:
And my problem: Calling method 'addTeamToPerson()' does not cause to add a new record to join table 'person_team'!!! Note: I traced the code line by line, there's no error or exception and the transaction commits.
Please help me solve it.