Community
Participate
Working Groups
BasicCollectionAccessor is processing the PrivateOwned annotation when privateOwned should always be true for a BasicCollection and BasicMap. This can also be configured in the xml, but it is then ignored in BasicCollectionAccessor.setPrivateOwned(boolean) since it is just set to true
javadocs for org.eclipse.persistence.annotations.PrivateOwned should also be updated. It says: * A PrivateOwned annotation can be used in conjunction with a BasicCollection, * BasicMap, OneToOne, and OneToMany annotation.
private-owned element also exists in the eclipselink orm schema under basic-collection and basic-map
Adding to this, I believe that privateOwned is also supported by VariableOneToOneMapping, which looks to be the case in VariableOneToOneAccessor. The eclipselink-orm.xsd does not have support for private-owned in a variable-one-to-one mapping. Another place to update is LoggingLocalizationResource key = "annotation_warning_ignore_private_owned" value = "Ignoring @PrivateOwned on element [{1}] within entity class [{0}]. A @PrivateOwned can only be used with a @BasicCollection, @BasicMap, @OneToOne and @OneToMany." },
(In reply to comment #3) > The eclipselink-orm.xsd does not have support for > private-owned in a variable-one-to-one mapping. I am wrong about this, it is in the schema
Created attachment 107221 [details] Code changes
Fix submitted. Reviewed by: Tom Ware No new tests were added, N/A, useless code removed.
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink