Hi,
How do I create a compound Primary key for my ejb's with XDoclet? I tried
using the @ejb.pk-field tag on two fields to no avail. Essentially, I want
to have a relation and an ID form the key.
For instance in the code below, I would like to make the locale method part
of my key. Is this possible?
thanks
Jordan
/**
* Returns the id
*
* @return the id
* @ejb.pk-field
* @ejb.interface-method view-type="local"
* @ejb.persistence column-name="id"
* @jboss:jdbc-type type="INTEGER"
* @jboss:sql-type type="INT(11)"
*/
public abstract java.lang.Integer getId();
/**
* This is a bi-directional one-to-many relationship CMR method
*
* @return the related CountryLocal.
* @ejb.interface-method view-type="local"
* @ejb.relation name="region-cmp20-language-cmp20-language_id_fk"
* role-name="language-cmp20-has-country-cmp20ByCountryIdFk"
* @jboss.relation-mapping style="foreign-key"
* @jboss.relation fk-constraint="true" fk-column="language_id_fk"
* related-pk-field="id"
*/
public abstract LanguageLocal getLocale();
-------------------------------------------------------
This sf.net email is sponsored by:
With Great Power, Comes Great Responsibility
Learn to use your power at OSDN's High Performance Computing Channel
http://hpc.devchannel.org/
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user