Issue Details (XML | Word | Printable)

Key: NUCCORE-565
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

Map with key/value that is "embedded-only" should detect that it is embedded and not need <embedded>

Created: 27/Sep/10 08:31 AM   Updated: 20/Oct/10 09:29 AM   Resolved: 27/Sep/10 03:16 PM
Component/s: MetaData, Persistence
Affects Version/s: None
Fix Version/s: 2.2.0.m2

 Description  « Hide
If we have a class A with field

private Map<String, B> map = new HashMap<String, B>();

and B is declared as

public class B

then the value is obviously intended to be embedded. Sadly DataNucleus currently assumes not.

Andy Jefferson added a comment - 27/Sep/10 03:16 PM
SVN trunk now handles this automatically. Also added the same logic for Collections with element being embedded-only

Andy Jefferson made changes - 27/Sep/10 03:16 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 2.2.0.m2 [ 11022 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 20/Oct/10 09:29 AM
Status Resolved [ 5 ] Closed [ 6 ]