Hi!
I've struggeled against this error(below) for a long time now - too long :-)
Well, I've generated the code automatically from middlegen(xdoclet) based on an 
existing db model.
I'll describe it here:
E.g. I'have a trip table which got a tripstatus (n:1). The tripstatus table does not 
need to have any reference back to its trips
(which gives a unidirection) so i've not attached it.
The xdoclet code for the Trip entity is shown below. Something is missing and I don't 
see it.

Any hints appreciated.

-Jon


ERROR
-------------------------------------------------

21:25:16,241 WARN  [ServiceController] Problem starting service jboss.j2ee:jndiN
ame=smartpool.TripstatusLocalHome,service=EJB
org.jboss.deployment.DeploymentException: No ejb-relationship-role-name element
found
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.getEJBRe
lationshipRoleElement(JDBCRelationMetaData.java:402)
        at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.<init>(J
DBCRelationMetaData.java:305)


CODE
-------------------------------------------------
   /**
    * This is a bi-directional one-to-many relationship CMR method
    *
    * @return the related smartpool.interfaces.TripstatusLocal.
    *
    * @ejb.interface-method view-type="local"
    *
    * @ejb.relation
    *    name="tripstatus-cmp20-trip-cmp20"
    *    role-name="trip-cmp20-has-tripstatus-cmp20"
    *    target-ejb="Tripstatus"
    *
    * @jboss.relation-mapping style="foreign-key"
    *
    * @jboss.relation
    *    fk-constraint="true"
    *    fk-column="tripstatusid"
    *    related-pk-field="tripstatusid"
    *
    */
   public abstract smartpool.interfaces.TripstatusLocal getTripstatus();




-------------------------------------------------------
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/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to