|PrivateOwned dont work in Embeddable class [message #626910]
||Wed, 22 September 2010 14:11
| Danilo Magrini
Registered: September 2010
Hello, this is my first post in the forum. I have a problem with the annotation @ PrivateOwned with @ Embeddable. My classes:|
public class A (
public class B (
@ OneToMany (mappedBy = "a", cascade = CascadeType.ALL)
List <C> lc;
The above example, at the time of deletion, the records of the table represented by the class "C" are not excluded and not disconnected. If I add the contents of class "B" directly in "A" works like a charm.
I tried to modify the mapping "OneToMany" to mappedBy = "b" but an error occurs.
Does anyone know tell me if the PrivatedOwned work with Embeddable or whether this is a bug. I'm using the eclipselink-2.1.1.v20100817-r8050 version.
thx a lot.
Powered by FUDForum
. Page generated in 0.01649 seconds