1 Reply Latest reply on Aug 19, 2002 3:10 PM by Juha Lindfors

    any example of one-to-many relationship ???

    pep Newbie

      I'm implementing two ejb's. one is Order and the other is OrderLine. The relationship is unidirectional. Has anyone an example that runs with JBOSS ? I tried different things but I can' get the solution !

      OrderLine has a compound primary key (orderId and lineNumber). I need to have the field OrderId in the table or is created by the container ? (sometimes I get the error "duplicated fields"). Does I need to specify he field orderId of OrderLine in ejb-jar.xml and jbosscmp-jdbc as cmp ?

      any help ?

      Thanks !

      I haven't found ANY place where they explain well how to do it !