OpenJPA
  1. OpenJPA
  2. OPENJPA-1430

Provider/Persistence*Util.isLoaded for Embeddable fields

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0.0
    • Fix Version/s: None
    • Component/s: jpa
    • Labels:
      None

      Description

      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.

        Activity

        Hide
        Albert Lee added a comment -

        Another use case:

        @Embedded
        private UtilEmbeddable emb;

        @Embedded
        @AttributeOverrides(

        { @AttributeOverride(name="embedField", column=@Column(name="embedField2")), }

        )
        private UtilEmbeddable emb1;

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

        Show
        Albert Lee added a comment - Another use case: @Embedded private UtilEmbeddable emb; @Embedded @AttributeOverrides( { @AttributeOverride(name="embedField", column=@Column(name="embedField2")), } ) private UtilEmbeddable emb1; pu.isLoaded( e, "emb.embedField"); << embedField column pu.isLoaded( e, "emb1.embedField"); << embedField2 column

          People

          • Assignee:
            Unassigned
            Reporter:
            Albert Lee
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development