-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Seth Ladd wrote:
| Hello,
|
| I've been using xdoclet 1.2 and hibernate 2.1 very successfully lately.
| ~ I've run into a situation I'm not sure xdoclet supports, and I just
| wanted to verify that.
|
| I have this relationship I want to use xdoclet to generate:
|
| ~        <set
| ~            name="activities"
| ~            table="BUSINESS_ACTIVITIES"
| ~            lazy="true"
| ~            inverse="false"
| ~            cascade="delete"
| ~            sort="unsorted"
| ~        >
|
| ~              <key
| ~                  column="business_id"
| ~              />
|
| ~              <element
| ~                  column="activity_id"
| ~                  type="com.hic.eboss.Activity"
| ~              />
| ~        </set>

Hello,

I've answered my own question. Here is how to achieve the example above:

~     * @hibernate.set table="BUSINESS_ACTIVITIES" lazy="true"
cascade="delete"
~     * @hibernate.collection-element column="activity_id"
type="com.hic.eboss.Activity"
~     * @hibernate.collection-key column="business_id"

Thanks,
Seth
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFAJBQ75EIB1scRes8RAvKsAJ99sY9SEjIvidvrhTRClievwKMEMQCggbAn
TbF9inqJJR1JekGXPSutzrc=
=SB79
-----END PGP SIGNATURE-----



-------------------------------------------------------
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

Reply via email to