Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Labels:
      None

      Description

      At the moment, it is not possible to have null @Embedded objects in JPA (while Hibernate, etc allow it). This is quite a common scenario in most domain models that JPA should take into account. The following is an example:

      <pre>
      public class Employee {
      ...
      @Embedded(optional=true) // This should be possible since the employee entity can be null in some
      // stages of it's life-cycle
      private Address address;
      ...
      }
      </pre>

        Activity

          People

          • Assignee:
            ldemichiel
            Reporter:
            reza_rahman
          • Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated: