Jeff,
If I understand your point, you are trying to have a bidrectional association from two different types of parent to a single child class.
So,
ParentA has one to many Child
ParentB has one to many Child
Child has many to one [ something ... possibly a superclass for parents ]
The whole problem here is the [something] portion. IF you are trying to have a bidirectional association, you cannot simulate that type of relationship using the <any> tag. With the any tag, I think you'll be able to figure out who a Child's daddy is, but not which particular Child a daddy has.
As they stated in the reference manual it's only useful for special cases such as audit logs ..... On the surface, it sounded like you want an audit log. But, I'm getting the impression you're wanting more.
So, I'd recommend you head down the SuperParent base class path. For that, something such as
Code:
Class SuperParent{
History historyEntry;
}
Class ParentA extends SuperParent{
...
}
Class ParentB extends SuperParent{
...
}
Then you do the mapping for the base class that will allow you to have the bidirectional association since all SuperParents have history data and all classes that extend SuperParent have Child...... ok so Im getting tired but I think you get the idea.
As for your remarks about native id generation.....I dont really follow :)