Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Problems with @PrivateOwned annotation :"Ignoring @PrivateOwned on element ..."

And actually that shouldn't be the case. Please enter a bug to have it corrected.

Cheers,
Guy

----- Original Message ----- From: "Guy Pelletier" <guy.pelletier@xxxxxxxxxx>
To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
Sent: Monday, May 12, 2008 8:30 AM
Subject: Re: [eclipselink-users] Problems with @PrivateOwned annotation :"Ignoring @PrivateOwned on element ..."


EclipseLink currently does not support the use of @PrivateOwned on a uni-directional 1-M. Note, it is uni-directional since you do not have a mappedBy specification.

Cheers,
Guy

----- Original Message ----- From: "fed" <fury123@xxxxxxxxx>
To: "EclipseLink User Discussions" <eclipselink-users@xxxxxxxxxxx>
Sent: Sunday, May 11, 2008 11:15 AM
Subject: [eclipselink-users] Problems with @PrivateOwned annotation :"Ignoring @PrivateOwned on element ..."


Hi,
i have an Entity with a method like :

@OneToMany(cascade = CascadeType.ALL)
@org.eclipse.persistence.annotations.PrivateOwned
public List<A> getList() {
return list;
}

but the @PrivateOwned annotation is ignored, i get this message:

[EL Warning]: 2008.05.11
17:03:02.195--ServerSession(6662015)--Thread(Thread[main,5,main])--Ignoring
@PrivateOwned on element [public java.util.List
eclipselinktest.B.getList()] within entity class [class
eclipselinktest.B]. A @PrivateOwned can only be used with a
@BasicCollection, @BasicMap, @OneToOne and @OneToMany.

this is a @OneToMany, why it ignores the @PrivateOwned annotation ?

Or this is the not right way to use it ?

Just to understand if i mark it with @PrivateOwned, when i
remove/clear elements from the list then the elements will be removed
from the database too, right?

Bye
Thanks for the help
_______________________________________________
eclipselink-users mailing list
eclipselink-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-users





Back to the top