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

Albert Lee commented on OPENJPA-1430:
-------------------------------------

Another use case:

    @Embedded
    private UtilEmbeddable emb;

    @Embedded
    @AttributeOverrides({
        @AttributeOverride(name="embedField",            
colu...@column(name="embedField2")),
        })
    private UtilEmbeddable emb1;

   pu.isLoaded( e, "emb.embedField");    << embedField column
   pu.isLoaded( e, "emb1.embedField"); << embedField2 column


> Provider/Persistence*Util.isLoaded for Embeddable fields
> --------------------------------------------------------
>
>                 Key: OPENJPA-1430
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1430
>             Project: OpenJPA
>          Issue Type: New Feature
>          Components: jpa
>    Affects Versions: 2.0.0
>            Reporter: Albert Lee
>
> JPA 2.0 spec describe the isLoaded semantics for embeddable in Section 3.2.9 
> Load State.
> However it does not define how embeddable field can be specified in the 
> isLoaded methods.
> E.g.
>    @Entity Class Entity {
>       @Embedded Embeddable emb;
>    }
>    @Embeddable Class Embeddable {
>        int embedField;
>    }
>    Entity e;
>    PersistenceUtil pu;
>    pu.isLoaded( e, "emb");   <<<< defined
>    pu.isLoaded( e, "emb.embedField");   <<<< new feature
> Albert Lee.

-- 
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