Issue Details (XML | Word | Printable)

Key: NUCJPA-214
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

If user has a persistable field and forgets to put @OneToOne (or XML equiv), set DFG to "true"

Created: 04/Feb/13 09:08 AM   Updated: 15/Feb/13 03:21 PM   Resolved: 04/Feb/13 10:32 AM
Component/s: None
Affects Version/s: None
Fix Version/s: 3.2.0.m4


 Description  « Hide
JPA doesn't have optional specification of field types, i.e you have to specify the @OneToOne, @OneToMany etc. If they omit it then some logic would be needed to work out what it should be

Andy Jefferson added a comment - 04/Feb/13 10:32 AM
SVN trunk now introduces code into TypeManager that sets the DFG for any persistable field that hasn't had its required metadata provided (in JPA it defaults to being in the DFG, whereas in JDO it isn't).

Andy Jefferson made changes - 04/Feb/13 10:32 AM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 04/Feb/13 03:08 PM
Summary If user has an @Embedded (PC) field and forgets to put @OneToOne, set DFG to "true" If user has a persistable field and forgets to put @OneToOne (or XML equiv), set DFG to "true"
Andy Jefferson made changes - 15/Feb/13 03:21 PM
Status Resolved [ 5 ] Closed [ 6 ]