You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by "Jeremy Bauer (JIRA)" <ji...@apache.org> on 2010/01/27 17:16:34 UTC

[jira] Created: (OPENJPA-1485) isLoaded util method does not behave per spec for collection attributes

isLoaded util method does not behave per spec for collection attributes
-----------------------------------------------------------------------

                 Key: OPENJPA-1485
                 URL: https://issues.apache.org/jira/browse/OPENJPA-1485
             Project: OpenJPA
          Issue Type: Bug
    Affects Versions: 2.0.0
            Reporter: Jeremy Bauer
            Assignee: Jeremy Bauer


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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1485) isLoaded util method does not behave per spec for collection attributes and basic type

Posted by "Donald Woods (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Donald Woods updated OPENJPA-1485:
----------------------------------

    Affects Version/s:     (was: 2.0.0)
                       2.0.0-beta
        Fix Version/s:     (was: 2.0.0)
                       2.0.0-beta2

> isLoaded util method does not behave per spec for collection attributes and basic type
> --------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1485
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1485
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0-beta
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>             Fix For: 2.0.0-beta2
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (OPENJPA-1485) isLoaded util method does not behave per spec for collection attributes and basic type

Posted by "Jeremy Bauer (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jeremy Bauer resolved OPENJPA-1485.
-----------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

> isLoaded util method does not behave per spec for collection attributes and basic type
> --------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1485
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1485
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>             Fix For: 2.0.0
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (OPENJPA-1485) isLoaded util method does not behave per spec for collection attributes and basic type

Posted by "Fay Wang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/OPENJPA-1485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Fay Wang updated OPENJPA-1485:
------------------------------

    Summary: isLoaded util method does not behave per spec for collection attributes and basic type  (was: isLoaded util method does not behave per spec for collection attributes)

A basic type is in the default fetch group. If a fetch plan is used to load an entity, and that fetch plan removes the default fetch group, the basic type will not be loaded. In this case, this basic type should be regarded as lazy loaded. The isLoaded util method should return true for this entity because all eager-fetched attributes are loaded.

> isLoaded util method does not behave per spec for collection attributes and basic type
> --------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-1485
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-1485
>             Project: OpenJPA
>          Issue Type: Bug
>    Affects Versions: 2.0.0
>            Reporter: Jeremy Bauer
>            Assignee: Jeremy Bauer
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.