to explain 1 and 2: 1). for example, i have three tables:sys_role,sys_user,rs_resource,in myseam,configurate the generate as the following: <?xml version="1.0" encoding="UTF-8"?> | <gen4db> | <!-- module configuration --> | <!-- | one applicatin cant have more than one modules,and in one module | can have more than one tables separated by comma | --> | <modules > | <module name="common"> | sys_user,sys_role | </module> | <module name="resource"> | rs_resource | </module> | </modules> | <!-- the all tables prefix,separated by comma --> | <prefix>sys,rs</prefix> | <!-- the primary key generation type,the value must be in IDENTITY,SEQUENCE,TABLE,AUTO --> | <primaryKeyType>IDENTITY</primaryKeyType> | </gen4db>
and the base package is "com.googlecode.myproject",then the model class of sys_user and sys_role will be generated into com.googlecode.myproject.model.common,and rs_resource's model will be generated into com.googlecode.myproject.model.resource,and the Home bean and list bean will be generated into com.googlecode.myproject.service.common and com.googlecode.myproject.service.resource,and the view will be generated into common and resource. 2).the all code generated don't constain the table prefix,sys and rs,including their name. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4107226#4107226 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4107226 _______________________________________________ jboss-user mailing list [email protected] https://lists.jboss.org/mailman/listinfo/jboss-user
