[ 
https://issues.apache.org/jira/browse/OPENJPA-1607?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13102246#comment-13102246
 ] 

Koen Rousseau edited comment on OPENJPA-1607 at 9/11/11 8:24 AM:
-----------------------------------------------------------------

I'm running OpenJPA-2.1.1, and it still throws the above exception when trying 
to model a Unidirectional OnyToMany relationship without a join table. I 
checked the xsd version in persistence.xml, it is 2.0.

<edited> Tried it with the latest OpenJPA-2.2.0-SNAPSHOT, same result.

      was (Author: koenr):
    I'm running OpenJPA-2.1.1, and it still throws the above exception when 
trying to model a Unidirectional OnyToMany relationship without a join table. I 
checked the xsd version in persistence.xml, it is 2.0.
  
> Using unidirectional one-to-many target foreign key throws exception
> --------------------------------------------------------------------
>
>                 Key: OPENJPA-1607
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1607
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta3
>            Reporter: Oliver Ringel
>         Attachments: openjpa-1607.tar
>
>
> Using this simple unidirectional relationship
> @OneToMany
> @JoinColumn(name = "DEPARTMENT_ID")
> private Set<Employee> employees;
> causes to the following exception
> <openjpa-2.0.0-beta3-r422266:926797 fatal user error> 
> org.apache.openjpa.persistence.ArgumentException: You have supplied columns 
> for "com.example.Department.employees", but this mapping cannot have columns 
> in this context.
> Unidirectional one-to-many target foreign key relationship should be 
> supported in JPA 2.0.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to