I have 2 tables, which has many to many relationship for 2 tables, whenever I am creating a new record, that time I sending list data, that data I want to map.
Could you please help me on this.
this is my small example , what I want
class Factory{
String name,
int code;
List<FactoryPlantMapping> factoryPlantMapping;
}
class Plant
{
int id
Sring name;
List<FactoryPlantMapping> factoryPlantMapping;
}
class FactoryPlantMapping
{
int id;
Factory factory;
Plant plant;
}
I need to mapping these class to store data into mapping table .
Could you please help me how to implement dozer for this.
Thanks Advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have 2 tables, which has many to many relationship for 2 tables, whenever I am creating a new record, that time I sending list data, that data I want to map.
Could you please help me on this.
this is my small example , what I want
class Factory{
String name,
int code;
List<FactoryPlantMapping> factoryPlantMapping;
}
class Plant
{
int id
Sring name;
List<FactoryPlantMapping> factoryPlantMapping;
}
class FactoryPlantMapping
{
int id;
Factory factory;
Plant plant;
}
I need to mapping these class to store data into mapping table .
Could you please help me how to implement dozer for this.
Thanks Advance.