Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » PrivateOwned dont work in Embeddable class
PrivateOwned dont work in Embeddable class [message #626910] Wed, 22 September 2010 14:11 Go to previous message
Danilo Magrini is currently offline Danilo Magrini
Messages: 4
Registered: September 2010
Junior Member
Hello, this is my first post in the forum. I have a problem with the annotation @ PrivateOwned with @ Embeddable. My classes:

@ Entity
public class A (
      @ Embedded
      B b;
)

@ Embeddable
public class B (
      @ OneToMany (mappedBy = "a", cascade = CascadeType.ALL)
      @ PrivateOwned
       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.
 
Read Message
Read Message
Read Message
Previous Topic:EclipseLink Workbench source code?
Next Topic:How can I associate primary and secondary tables with a join criteria other than the compound key
Goto Forum:
  


Current Time: Wed May 22 09:23:52 EDT 2013

Powered by FUDForum. Page generated in 0.06277 seconds