I wouldn't mind having a butchers.. (uk idiom for take a look).
On 10 Feb 2004, at 12:29, kaxell wrote:
Hi,
Thanks for your replys, but the trick I used to get it working was with the "@hibernate.collection-composite-element" tag. If anyone is interested in seeing how it works just reply to this message and I'll put an example on the list.
/Klas
From: "Shishir K. Singh" <[EMAIL PROTECTED]> Date: 2004/02/06 fr PM 04:23:22 GMT To: <[EMAIL PROTECTED]> �mne: RE: [Xdoclet-user] Many to many with Hibernate
I would say that have a look at the test suite that comes with the
xdoclet src and look for the hibernate examples. I think that I saw
something similar to what you need. I too had the same concerns but I
decided to opt the easy way out (due to lack of time) by putting id in
each of my assocition class (that joins the two many to many class).
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of kaxell Sent: Friday, February 06, 2004 10:47 AM To: [EMAIL PROTECTED] Subject: [Xdoclet-user] Many to many with Hibernate
Hi,
I'm using xdoclet to generate my hibernate mapping files but I have a
problem when I'm trying to generate a many to many relationship. I have
two tables which have a many to many relationship. They are linked to
eachother with a third table which also contains some extra properties
except the keys of the others. I have three separate classes and I'm
using a many-to-one relationship in the linking table to the other two
and from the two I'm using a one-to-many relationship. When I try to
generate the mapping files I get an exception which says that my linking
table is missing an id.
What I understand is that I haven't got it right in the xdoclet tags but
I don't know how to fix it. Does anyone have any suggestions or examples
how to solve this? The doclet is looking something like this:
/** * @hibernate.set * lazy="true" * inverse="true" * @hibernate.collection-key * column="colId" * @hibernate.collection-one-to-many * class="TheRelClass" * */
--------------
/** * @hibernate.many-to-one * column="colId" * class="TheManyClass" * */
Thanks in advance.
/K
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on
Open Tools Development and Integration See the breadth of Eclipse
activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ xdoclet-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-user
