Hi All
I have a class that contains an instance of itself as an attribute, for example...
Code:
public SpecialNumber
{
Long id;
SpecialNumber previousNumber;
}
There will only be a one-to-zero-or-one for this attribute. I was thinking that the previousNumber column would contain the id attribute of the Class that it references. My problem is that I'm not sure how this should be mapped using Hibernate. I've tried several things however the schemaexport task won't even create the column.
Can someone give me an idea how to handle this? I've searched the forum and the documentation and haven't seen anything like what I'm trying to do.
Thanks