Maxim Kuleshov
Thu, 29 Jan 2009 22:55:00 -0800
On Thu, 29 Jan 2009 15:18:14 +0300 Maxim Kuleshov <kules...@org.vrn.ru> wrote:
> That's scheme gives me error during XDoclet stage: > > "The collection entries in class ojbs.ObjsList specifies a foreignkey > listId that is not a persistent field in the element class (or its > subclass) objs.B" Well, this problem has been solved. The answer is I mixed up extents and multiple-joined tables concepts. But another problem still persists. Then storing instance of classB its foreign key to classA (prentId), declared as anonymous is not set automatically, so reference between table_a and table_b is lost and when loading classB all fields declared in classA are nulls. The only way to preserve references is to use primary key of classB (id) as a foreign key to classA. But how to force sequence-manager generate its value only once (if every class has its own instance of id). I use XDoclet, and it doesn't allow to inherit particullar field. Moreover, it doesn't allow to ignore duplicate fields, as listId among then and class ObjsList has collection back-referencing via that field. If I put obj.field declaration with name attribute it always become anonymous (which is not true). --------------------------------------------------------------------- To unsubscribe, e-mail: ojb-user-unsubscr...@db.apache.org For additional commands, e-mail: ojb-user-h...@db.apache.org