On 10/12/07, Matthew Wu <[EMAIL PROTECTED]> wrote: > > > Hi, this is my first time use the forum, I am from Dalian China, thanks a > lot. > I have these problem, I don't know how to resolve. I use appfuse 2.0 > 1)how can I create a model for a table. because when I execute : mvn > appfuse:gen-model, which can create models for all tables that i create in > current databse. but in appfuse1.x, we can create model for one table by > appgen
The command is appfuse:gen-model (see http://www.appfuse.org/display/APF/AppFuse+Maven+Plugin and http://static.appfuse.org/plugins/appfuse-maven-plugin/ for more details). It uses Hibernate Tools under the hood so you may want to familiarise yourself with that project as well so as to best control/customise the code generation. 2)If the groupId in pom.xml is com.mycompany.app. when i excute: mvn > appfuse:gen-nodel, models created will be put into com.mycompany.app.model > . > if i want to create models and put them in other packake, such as > com.bt.dqviewer.app.model. what can i do? when i excute "mvn > appfuse:gen", > Will the generated code be put into relative packages ? such as > "com.bt.dqviewer.app.webapp.action"..... You do this by setting the "packagename" property in the AppFuse maven plugin configuration: <configuration> <componentProperties> <packagename>your_custom_package_name</packagename> </componentProperties> </configuration> Mike -- > View this message in context: > http://www.nabble.com/how-to-create-a-model-for-a-table-and-some-other-problems-tf4611078s2369.html#a13168091 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
