set、list、array、map
Collection:
private int id;
private String name;
private Set setValue;
private List listValue;
private String[] arrayValue;
private Map mapValue;
Collection:
private int id;
private String name;
private Set setValue;
private List listValue;
private String[] arrayValue;
private Map mapValue;
<
class
name
="Collection"
>
< id name ="id" >
< generator class ="native" />
</ id >
< property name ="name" />
< set name ="setValue" table ="t_setvalue" >
< key column ="setid" />
< element type ="string" column ="setvalue" />
</ set >
< list name ="listValue" table ="t_listvalue" >
< key column ="listid" />
< list-index column ="listindex" />
< element type ="string" column ="listvalue" />
</ list >
< array name ="arrayValue" table ="t_arrayvalue" >
< key column ="arrayid" />
< list-index column ="arrayindex" />
< element type ="string" column ="arrayvalue" />
</ array >
< map name ="mapValue" table ="t_mapvalue" >
< key column ="mapid" />
< map-key type ="string" column ="mapkey" />
< element type ="string" column ="mapvalue" />
</ map >
</ class >
< id name ="id" >
< generator class ="native" />
</ id >
< property name ="name" />
< set name ="setValue" table ="t_setvalue" >
< key column ="setid" />
< element type ="string" column ="setvalue" />
</ set >
< list name ="listValue" table ="t_listvalue" >
< key column ="listid" />
< list-index column ="listindex" />
< element type ="string" column ="listvalue" />
</ list >
< array name ="arrayValue" table ="t_arrayvalue" >
< key column ="arrayid" />
< list-index column ="arrayindex" />
< element type ="string" column ="arrayvalue" />
</ array >
< map name ="mapValue" table ="t_mapvalue" >
< key column ="mapid" />
< map-key type ="string" column ="mapkey" />
< element type ="string" column ="mapvalue" />
</ map >
</ class >