Uploaded image for project: 'Hibernate Integration'
  1. Hibernate Integration
  2. HIBERNATE-50

Embedded Objects get set to null if all its members are null

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Won't Fix
    • Labels:
      None
    • Environment:

      WinXP SP2, JBoss 4.0.4 GA as well as JBoss 4.0.5 GA, installation profile ejb3

      Description

      When having an embedded object only containing members of non-simple-types (e.g. String) and fetching it with the entity manager the following happens:
      If all columns, the embedded objects values are based on, are null the embedded object itself is set to null even if a non-arg-constructor set it to a non-null value before. A valid workaround is to include a member of a simple-type (e.g. int) in the embedded object. Doing this not all the values can be set to null, which results in not setting the embedded object itself to null, too.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                sebersole Steve Ebersole
                Reporter:
                mwoelke milan w├Âlke
              • Votes:
                12 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: