Re: [Xdoclet-user] Problems with Primary-Keys built from to columns

2004-09-17 Thread Ralph Churchill
In your class for the table (e.g. TableModel), make the primary key another class (e.g. TableModelKey). In TableModel: /** * @hibernate.id generator-class="assigned" */ public TableModelKey getId() { return this.id; } Then create your TableModelKey class with the member being key_id and f_accou

[Xdoclet-user] hibernate and formula

2004-09-09 Thread Ralph Churchill
I'm using xdoclet-1.2.2-SNAPSHOT and the newly added "formula" hibernate tag does not seem to be working. I'm confused because in xdoclet, "formula" is associated with "column", but in hibernate... it's a parameter of "property". Here's my xdoclet: /** * @hibernate.property * @hib

[Xdoclet-user] Hibernate multi-column key-many-to-one

2004-05-27 Thread Ralph Churchill
How do I get a multi-column key-many-to-one to work in Xdoclet? I want the hbm.xml to look like so: The @hibernate.many-to-one works, but I can't figure out how to get the "nested" columns... Thanks! RMC __ Do you Yahoo!? Fr