JBoss 3.2.6 & 3.2.7, CMP, CMT, Postgres DB
I have two tables (salesorderdetail, lock), salesorderdetail has a lock_id column which is a foreign key into the lock table, and I have two corresponding entitys (salesorderdetail, lock) one of which has a CMR into the other
SalesOrderDetailBean.java : /** * This is a uni-directional one-to-many relationship CMR method * * @return the related com.actual_systems.p2.server.entity.interfaces.LockLocal. * @ejb.interface-method view-type="local" * @ejb.relation name="lock-cmp20-salesorderdetail-cmp20" * role-name="salesorderdetail-cmp20-has-lock-cmp20" * target-ejb="Lock" * target-role-name="lock-cmp20-has-salesorderdetail-cmp20" * target-multiple="yes" * @jboss.relation-mapping style="foreign-key" * @jboss.relation fk-constraint="true" * fk-column="lock_id" * related-pk-field="lockId" * @ejb.value-object aggregate="com.actual_systems.p2.shared.values.generated.LockLightValue" * aggregate-name="Lock" * match="all" * relation="external" */ public LockLocal getLock();