openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From David Blevins <david.blev...@visi.com>
Subject Fwd: Caused by: <openjpa-1.1.0-r422266:659716 fatal user error> org.apache.openjpa.persistence.ArgumentException: ....... cannot be annotated by two persistence strategy annotations.
Date Fri, 20 Mar 2009 22:48:09 GMT
Forwarding to the OpenJPA users list, hopefully they might have better  
insight.

-David


Begin forwarded message:

> Resent-From: <dblevins@visi.com>
> From: jooocz <jocel.z@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.
>
>


Mime
View raw message