openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (OPENJPA-2357) @..ToMany(optional=false) throws InvalidStateException: [...] the metadata for this field specifies that nulls are illegal.
Date Tue, 26 Mar 2013 12:45:26 GMT

    [ https://issues.apache.org/jira/browse/OPENJPA-2357?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13613734#comment-13613734
] 

ASF subversion and git services commented on OPENJPA-2357:
----------------------------------------------------------

Commit 1461090 from curtisr7
[ https://svn.apache.org/r1461090 ]

OPENJPA-2357: Fix InvalidStateException when using the InverseManager. Fix contributed by
Guillaume Chauvet.
                
> @..ToMany(optional=false) throws InvalidStateException: [...] the metadata for this field
specifies that nulls are illegal.
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: OPENJPA-2357
>                 URL: https://issues.apache.org/jira/browse/OPENJPA-2357
>             Project: OpenJPA
>          Issue Type: Bug
>          Components: kernel
>    Affects Versions: 2.2.0, 2.2.1
>            Reporter: Guillaume Chauvet
>            Assignee: Rick Curtis
>            Priority: Critical
>         Attachments: OPENJPA-22357.zip, OPENJPA-2357.patch
>
>
> Hi,
> We have discovered a bug in OpenJPA when InverseManager is used with collection annoted
@toMany([...], optional = false). OpenJPA doesn't solve inverse relations before calling the
internal preflush method.
> This bug does not exist on versions 2.1.0 and 2.1.1.
> A unitary test and a small patch is worth a thousand words ;) [1]
> [1] Patch successfully tested on OpenJPA 2.2.1 and in our software.
> Regards,

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message