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)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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)
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.