Hello to everyone,
Whenever I run my test file, I'm getting an ArgumentException error caused
by using a two persistence strategy annotations.
Caused by: <openjpa-1.1.0-r422266:659716 fatal user error>
org.apache.openjpa.persistence.ArgumentException: ....... cannot be
annotated by two persistence strategy annotations.
Example : I have entities A, B, C, and D. In my D entity I use the following
:
@OneToOne
@JoinColumns({
@JoinColumn( name="a_id" , referencedColumnName="A_ID" ),
@JoinColumn( name="b_id" , referencedColumnName="B_D" ),
@JoinColumn( name="c_id" , referencedColumnName="C_ID" )
})
@ManyToOne
private Abc abc; //We also have an Abc entity
In this field (abc), I used @OneToOne and @ManyToOne. Our team did this as a
workaround. We had problems then with JPA version.
Anyway, I would like to ask if what can I do to resolve this.
Thanks in advance for any help.
- Jo
--
View this message in context:
http://www.nabble.com/Caused-by%3A--%3Copenjpa-1.1.0-r422266%3A659716-fatal-user-error%3E-org.apache.openjpa.persistence.ArgumentException%3A-.......-cannot-be-annotated-by-two-persistence-strategy-annotations.-tp22613368p22613368.html
Sent from the OpenEJB User mailing list archive at Nabble.com.