You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@openjpa.apache.org by David Blevins <da...@visi.com> on 2009/03/20 23:48:09 UTC
Fwd: Caused by: org.apache.openjpa.persistence.ArgumentException: ....... cannot be annotated by two persistence strategy annotations.
Forwarding to the OpenJPA users list, hopefully they might have better
insight.
-David
Begin forwarded message:
> Resent-From: <db...@visi.com>
> From: jooocz <jo...@gmail.com>
> Date: March 19, 2009 7:37:56 PM PDT
> To: users@openejb.apache.org
> Subject: Caused by: <openjpa-1.1.0-r422266:659716 fatal user error>
> org.apache.openjpa.persistence.ArgumentException: ....... cannot be
> annotated by two persistence strategy annotations.
> Reply-To: users@openejb.apache.org
>
>
> 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.
>
>