hi all,
Suppose I have a scenario:
Table AMO --> ID,.......
Table AMOACO--> AMOID, ACOID ( both fk and together pk)
Table ACO--> ID,..........
Class AMO: Long ID, list acos ...
Class ACO: Long ID, ..........
1 AMO ---> * ACO
I wonder that how can I set this one-to-many relation in the mapping file just using the AMOACO table only as a bridge?
I mean in general collection of objects logic, there are 2 tables and 2 classes in the simpliest case, but now I have 2 classes with 3 tables, one of them is the mapper table that I want to use as bridge.
<bag name = "acos" lazy= "true" ... ??????
.... ????
<one-to-many class="ACO">
</bag>
I think I need some formulatic expression here in bag...
If possible, I want all thing to happen in the mapping file.
_________________ -developer
|