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: NUCCORE-565
Type: Task Task
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Andy Jefferson
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

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

@Key(mappedBy="language")
@Join(table="multilingual_string_map")
private Map<String, B> map = new HashMap<String, B>();

and B is declared as

@PersistenceCapable(embeddedOnly="true")
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 ]