Hi,
I have a question about using the <version> element. This is quoted from the docs:
Quote:
Version numbers may be of type long, integer, short, timestamp or calendar.
What if I have a version property of the type integer, but it is wrapped in another class. Like this:
Code:
public class Version implements Serializable {
protected int version;
}
Is this type of mapping possible? Does the <version> element accept a custom user type?
Code:
public class MyClass {
protected long id;
protected Version version;
}
Thanks for reply.