1 Reply Latest reply on Jul 6, 2003 6:39 AM by Alexey Loubyansky

    Mapping One-To-Many w/ simple type

    Matt Corey Newbie

      Is it possible, with the DR2 release of JBossDO, to map a One-To-Many relationship where the 'many' side is a normal Java type (String, Integer, etc.).

      For example, I have a Project object that needs to persist a collection of email addresses (String objects). The schema is pretty standard -- a Project table that has most of the data, and a Project_email table that has email addresses, and a foreign key back to the project table.

      I see that these relations can be mapped when both sides of the relation are 'enhanced' objects -- the problem that I see is that there's no way to name the table and column of the 'target' when we're not dealing with enhanced classes.

      Thanks,
      Matt