I have an embedded class that embeds another class. In order to
remove conflicts with the embedding class, I use the @Embedded
annotation like this:
class X {
@Embedded(members = { @Persistent(name = "prop1", columns =
@Column(name = "yProp1")),
@Persistent(name = "prop2", columns = @Column(name =
"yProp2"))})
private Y y;
...
}
However, Y also has an embedded class that may conflict with
properties of X. Currently, I do this in Y:
class Y {
@Embedded(members = { @Persistent(name = "prop1", columns =
@Column(name = "zProp1")),
@Persistent(name = "prop2", columns = @Column(name =
"zProp2"))})
private Z z;
...
}
This works, but I think it's more desirable to provide the renames of
the properties of Z in X because X is going to be the place where all
of the conflicts need to be removed, and I may need different renames
in different Xs.
However, I don't know the syntax for that. Reading through the JDO
docs, I'm not quite able to get if it's even possible.
Does anyone know how to do this?
Thanks.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.