This content has been marked as final.
Show 1 reply
-
1. Re: Composite Primary Key
julien1 Feb 24, 2004 1:11 PM (in response to thepriz)you need to tag the persistent fields that will be part of the PK :
/** * ... * @ejb.pk * extends="java.lang.Object" * ... */ public class MyEJB ... ... /** * @ejb.interface-method * @ejb.persistence * column-name="topic_id" * @ejb.pk-field */ public abstract Integer getTopicId(); /** * @ejb.interface-method * @ejb.persistence * column-name="user_id" * @ejb.pk-field */ public abstract Integer getUserId(); ... }