OpenJPA
  1. OpenJPA
  2. OPENJPA-2083

Unmapped fields silently treated as transient

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.1.1
    • Fix Version/s: 2.2.0
    • Component/s: jpa
    • Labels:
      None
    • Patch Info:
      Patch Available

      Description

      The JPA 2.0 spec requires any non-static non-transient entity field to be persistent unless explicitly mapped as transient by a @Transient annotation or the equivalent XML.

      OpenJPA 2.1.1 silently treats some unmapped non-primitive fields as transient instead of throwing an exception or at least logging a warning.

      Example:

      @Entity
      public class City

      { @Id private String name; private Integer population; private java.util.concurrent.Executor executor; // getters and setters }
      1. OPENJPA-2083.patch
        2 kB
        Jacob Nowosatka

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Donald Woods
            Reporter:
            Harald Wellmann
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development