Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-1485

isLoaded util method does not behave per spec for collection attributes and basic type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.0-beta
    • 2.0.0-beta2
    • None
    • None

    Description

      Section 3.2.9 of the spec states:

      A collection-valued attribute is considered to be loaded if the collection was loaded from the database
      or the value of the attribute was assigned by the application, and, if the attribute references a collection
      instance (i.e., is not null), each element of the collection (e.g. entity or embeddable) is considered to be
      loaded.

      OpenJPA currently does not behave according to spec if an entity is loaded by the DB and the collection attribute is set to null.

      Attachments

        Activity

          People

            techhusky Jeremy Bauer
            techhusky Jeremy Bauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: