Hello All !

I am a newbie trying to generate CMP EJB 2.0 using  Middlegen and XDoclet
I have a two class relationship 1:M  User -> userNSC with a compound primary key on 
userNSC.

Bu I am afraid that I am doing something wrong.

I get the following error when running ejbc.


     [java] ERROR: Error from ejbc: Error while reading 
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was:
     [java]
     [java] In bean TUsersNsc, the abstract method, getTUser(), doesn't correspond to 
any container-managed field and is n
t implemented in the bean class or any of its superclasses.

     [java] In bean TUsersNsc, the abstract method, 
setTUser(ccop.interfaces.TUserLocal), doesn't correspond to any contai
er-managed field and is not implemented in the bean class or any of its superclasses.

     [java] In bean TUser, the abstract method, getTUsersNscs(), doesn't correspond to 
any container-managed field and is
ot implemented in the bean class or any of its superclasses.

     [java] In bean TUser, the abstract method, setTUsersNscs(java.util.Collection), 
doesn't correspond to any container-m
naged field and is not implemented in the bean class or any of its superclasses.



     [java] ERROR: ejbc found errors



     [java] Java Result: 1


This is how the relationships is defined on the UserNSc java class :
   /**
    * This is a bi-directional one-to-many relationship CMR method
    *
    * @return the related ccop.interfaces.TUserLocal.
    *
    * @ejb.interface-method view-type="local"
    *
    * @ejb.relation
    *    name="T_USERS-cmp20-T_USERS_NSC-cmp20"
    *    role-name="T_USERS_NSC-cmp20-has-T_USERS-cmp20"
    *
    * @jboss.relation-mapping style="foreign-key"
    *
    * @weblogic.column-map
    *    foreign-key-column="LOGON_ID"
    *    key-column="LOGON_ID"
    *
    * @jboss.relation
    *    fk-constraint="true"
    *    fk-column="LOGON_ID"
    *    related-pk-field="logonId"
    *
    */
   public abstract ccop.interfaces.TUserLocal getTUser();

   /**
    * Sets the related ccop.interfaces.TUserLocal
    *
    * @param ccop.interfaces.TUsersNscLocal the related $target.variableName
    *
    * @ejb.interface-method view-type="local"
    *
    * @param tUser the new CMR value
    */
   public abstract void setTUser(ccop.interfaces.TUserLocal tUser);


Someone knows what�s wrong ?
Thanks in advance





-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id149&alloc_id�66&op=click
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to