Menu

XML and Object Mapping

2004-08-25
2004-08-25
  • Nobody/Anonymous

    I have the following structure.
    Cliente have many Direcciones.
    Proveedor have many Direcciones.
    I have the following objects: Cliente, Direccion and Proveedor.
    I have the following tables: Cliente, Direccion, Proveedor, ClienteDireccion, ProveedorDireccion.
    How will be the XML or I will create several tables for each relations.

    Saludos
    Victor (Madrid-Spain)

     
    • Richard Banks

      Richard Banks - 2004-08-25

      Hi Victor,

      You will only need the ClienteDireccion and ProveedorDireccion tables if the associations are Many-To-Many.

      If they are One-To-Many then you only need tables for the three main classes.

      In either case you will need a class for each of the main tables (and the XML mappings).  If you need the other tables (many-to-many) you should also create classes for them and map the associations as one-to-many from each object to the association classes.

      I hope that help

      - Richard.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.