i have the followin object graph !!!!!!
class Persona {
int id_per;
String name;
List<Domicilio> domi;
}
class Domicilio {
int id_per;
int id_domi;
String street;
.... etc... some other propertis
}
it is posible for example code ?
Persona p = new Persona(1,"pepe")
p.getDomicilios().add( new Domicilio( 1, 100, "av. xxxx 1");
p.getDomicilios().add( new Domicilio( 1, 101, "av. xxxx 2");
p.getDomicilios().add( new Domicilio( 1, 102, "av. xxxx 3");
daoPersona.insert(p) //This dao insert data into persona and domicilio ... ( i and need this
functionality )
it is posible Ibatis insert related data automaticaly or how to code the ibatis maps for this
use case ?
HOW TO CONSTRUCT INSERT FOR TOW TABLES ?
Sorry muy english y too more basic,,, im spanish... thanks .....
|