0 Replies Latest reply on Mar 9, 2003 2:20 PM by tokken

    Working one-to-many code example?

    tokken

      I'm banging my head into the wall trying to get a one-to-many mapping to work (JBoss 3.0.4). I can't figure out what I'm doing different from what the documentation says I should do, but then again, I can't seem to find a complete, working, code example anywhere.

      All I'm looking for is code that will establish a one-to-many relationship between classes A and B, so that A.getOwnedBs() and B.getOwningA() get handled by the container using a foreign key in TABLE_B that references TABLE_A.

      Could someone point me to a code example, including *complete* ejb-jar.xml and jbosscmp-jdbc.xml files?

      Much appreciated!

      - Thomas