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

Donald Woods commented on OPENJPA-1012:
---------------------------------------

I can get testManagedInterface() to pass, if I change ManagedIface.java to 
remove the inclusion of the non-managed class SimpleEntity -
/*
    @OneToMany(cascade=CascadeType.PERSIST)
    public Set<SimpleEntity> getSetPC();
    public void setSetPC(Set<SimpleEntity> collection);
*/
    @OneToMany(cascade=CascadeType.PERSIST)
    public Set<ManagedIface> getSetI();
    public void setSetI(Set<ManagedIface> collection);
/*
    @OneToOne(cascade=CascadeType.PERSIST)
    public SimpleEntity getPC();
    public void setPC(SimpleEntity pc);
*/

Are ManagedInterface entities allowed to include non-ManagedInterface entities? 
 The docs aren't clear on this -
http://openjpa.apache.org/builds/latest/docs/manual/ref_guide_pc_interfaces.html
http://openjpa.apache.org/builds/latest/docs/javadoc/org/apache/openjpa/persistence/ManagedInterface.html


> Test failures in TestManagedInterface with @ManagedInterface annotation when 
> using JDK6
> ---------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1012
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1012
>             Project: OpenJPA
>          Issue Type: Sub-task
>          Components: query
>    Affects Versions: 2.0.0
>            Reporter: Donald Woods
>            Assignee: Donald Woods
>             Fix For: 2.0.0
>
>
> We have a problem with the OpenJPA @ManagedInterface annotation due to the 
> OPENJPA-5 update for JDK 6.
> Currently, the junit class in 
> openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/managedinterface/TestManagedInterfaces.java
>  failures on JDK6 are ignored because -
> @AllowFailure(message="On JDK6 Upgrade these tests are failing with wrong 
> mapping. " +
>     "Column PC_ID in ManagedInterfaceSup Table is not created. getPC() is " +
>     "defined as property in ManageIFace sub-interface")

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to