Hi there !
As an example, I would like to try a dependent object : a kind of String.
Let's call that object Text (it use a String internaly).
When I want to use a Text, I have to use :
Code:
@Basic()
@Dependent({
@DependentAttribute(name="value", column = @Column(name="name") })
@Column(updatable = true, name = "name", nullable = true, length=50)
private bolide.type.Text name = null;
First question : what do you think about mixing @Column and @dependent ?
Is it correct ? I can't find other ways to specify the updatable status without @Column. On the other hand, why should I provide
Code:
@Column( name=)
since it is already provided inside the @dependent...
Second question, here is the code the the Text class :
Code:
@DependentObject(access = AccessType.FIELD)
public class Text {
private String value;
[CUT]
Why should I use the @DependentObject ? I would love not to have to annotate that class. When I had used the Text attribute, it was mandatory to provide bolide.type.Text, so that sound like redundant information.
As I do not have to modify the String class itself it I woulld use it as a persistent attribute, I wonder why I should modify my own String class (here Text) ?
thanks !