Hello,<br>
<br>
I have a problem with toplink V2.1_build_b15, this problem does not exists with the Build b09d-fcs.<br>
<br>
I have thow entities, A & B
<br>
@Entity<br>
public class A {<br>
@OneToMany(cascade=CascadeType.ALL,fetch=FetchType.EAGER)<br>
private B b;<br>
}<br>
<br>
@Entity<br>
public class B {<br>
...<br>
...<br>
}<br>
<br>
Fist, i persist A and i close the entity manager<br>
<br>
manager.persist(a);<br>
<br>
then i instanciate B and add it to a<br>
<br>
List<B> blist = new ArrayList<B>();<br>
B b = new B();<br>
blist.add(b);<br>
a.setBlist(b);<br>
<br>
i create a new entity manager and merge A<br>
manager = factory...<br>
manager.merge(a)<br>
<br>
The problem is that B is inserter 2 times...<br>
<br>
no problems with b09d-fcs. I don't find this issue in the tracker.<br>
<br>
My next question is ... how do i report issues ? :)<br>
<br>
thx and forgive my bad english.<br>
[Message sent by forum member 'maxam' (maxam)]
http://forums.java.net/jive/thread.jspa?messageID=252269