/** * @ejb.interface-method * @ejb.persistence * * @return String */ public abstract String getState();
The resulting output in jbosscmp-jdbc.xml looks like:
<cmp-field> <field-name>state</field-name> </cmp-field>
If the column name in the database is the same as the object's field-name do I still need to specify the column-name attribute underneath @ejb.persistence? Or do I only need to specify the column-name when it is not equivalent to the field-name?
If I have the following method:
/** * @ejb.interface-method * @ejb.persistence * column-name="address_id" * @ejb.pk-field * * @return Integer */ public abstract Integer getAddressId();
Do I need the @ejb.persistence tag if I also have @ejb.pk-field?
I'm currently using Resin in production, but I'm trying to get my deployment descriptor setup so that I can move to JBoss with little, if any trouble.
Thanks,
-M@
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
