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.

Sort Order: Ascending order - Click to sort in descending order
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