Issue Details (XML | Word | Printable)

Key: NUCCORE-1126
Type: New Feature New Feature
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0

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

Add support to NamingFactory so that it can provide names for embedded member(s), including nested embedded members

Created: 12/Feb/14 02:38 PM   Updated: 01/Mar/14 07:39 PM   Resolved: 12/Feb/14 03:19 PM
Component/s: Datastore Support
Affects Version/s: None
Fix Version/s: 4.0.0.m1

 Description  « Hide
Whilst NamingFactory is perfectly capable of generating column names for normal members, and while we could just use the same method(s) for a member that is embedded, it would make sense to have a method that would allow for embedding of members. With this we could, for example, name embedded columns using the owner member name and the embedded member name.

public class Computer
    ComputerCard graphics;
    ComputerCard sound;
public class ComputerCard
    String maker;
    String model;

so in this case we would generate names like

Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 12/Feb/14 03:19 PM
GitHub master should now allow generation of column names for embedded members