The mapping file for the Hibarnate object is as follows
<id name= "Outlet" type= "string" >
<column name= "OUTLET" length= "ten"/>
<generator class= "Assigned"/>
</id>
<!--<property name= "code" type= "string" >
<column name= "CODE" length= "ten"/>
</property>
<property name= "Code" type= "string" >
<column name= "CODE" length= "5"/>
</property>
<property name= "Outline" type= "string" >
<column name= "OUTLINE" length= "5"/>
</property>
Outlet, code, outline are federated components in the database. Hibarnate Insert can be inserted so
if (Null!=outlet) {
string[] Outlets1 = Outlet.split (",");
String Cade=dischd.getcode ();
for (int i=0;i<outlets1.length;i++) {
System.out.println (i+ ":" +outlets1[i]);
Discs Discs=new discs ();
Discs.setoutlet (Outlets1[i]);
Discs.setcode (cade);//Unchanged
Discs.setoutline ("6");
Discs.setupdatedby ("0000001");
Discsservice.save (discs);
}
}
Because the IDs in the mapping file are defined as outlet, the inserts are not the same. So you can insert!
Outlet, code, outline are federated components in the database. Hibarnate Insert can be inserted so