Hi together,
for my next big webproject I have to deal with a strange problem.
Let's assume we have two tables,
Code:
producer customer
---------------- ---------------
p_id * c_id *
name name
which are connected with a many-to-many relation.
For saving the individual provision I want to add this integer
field in the automatic created relationtable as can be seen in the following example:
Code:
producer producer_2_customer customer
---------------- ------------------------- ---------------
p_id * p_id* c_id *
name c_id* name
provision
Now I have two problems:
How can solve this problem in the mapping file?
How do I have to code my Java-Classes to work with this combination?
Any other solution for this kind of problem?
Kind regards for a quick help
Fritz