DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCJPA-250
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Adrian Ber
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus API JPA

SingularAttributeImplisVersion() throws NPE

Created: 22/Sep/13 06:23 PM   Updated: 23/Oct/13 11:56 AM   Resolved: 08/Oct/13 03:51 PM
Component/s: API
Affects Version/s: 3.3.2
Fix Version/s: 3.2.6, 3.3.3

File Attachments: 1. Text File Metamodel_version.patch (0.7 kB)
2. Text File MetamodelTest_version.patch (0.6 kB)


Severity: Production


 Description  « Hide
SingularAttributeImpl.isVersion() throws NPE

Adrian Ber added a comment - 22/Sep/13 06:23 PM
I modified the MetaModel test to reflect this issue.

Adrian Ber made changes - 22/Sep/13 06:23 PM
Field Original Value New Value
Attachment MetamodelTest_version.patch [ 12017 ]
Adrian Ber added a comment - 22/Sep/13 06:25 PM
Here's the patch to solve this. In SingularAttributeImpl.isVersion() I verify first if versionMetadata is populated - if not, then the attribute is not a version attribute.

Adrian Ber made changes - 22/Sep/13 06:25 PM
Attachment Metamodel_version.patch [ 12018 ]
Andy Jefferson added a comment - 08/Oct/13 03:51 PM
Patches now in SVN trunk, thx.

Andy Jefferson made changes - 08/Oct/13 03:52 PM
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.3.3 [ 12020 ]
Resolution Fixed [ 1 ]
Andy Jefferson added a comment - 22/Oct/13 09:09 AM
Also on branches/3.2

Andy Jefferson made changes - 22/Oct/13 09:09 AM
Fix Version/s 3.2.6 [ 12021 ]
Andy Jefferson made changes - 23/Oct/13 11:56 AM
Status Resolved [ 5 ] Closed [ 6 ]