mvn appfuse:gen -Dentity=Name does not generate Dao and Manager

3 messages Options
Embed this post
Permalink
|| Sudhir Nimavat ||

mvn appfuse:gen -Dentity=Name does not generate Dao and Manager

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
I have created a Spring MVC modular project and a very simple entity (UserProfile) with just one field.

Now I am trying to generate CRUD for UserProfile (Actually trying my first demo with appfuse) However when I run mvn appfuse:gen -Dentity=UserProfile It does not generate any DAO or Manager.. it does modify hibernate.cfg.xml, generate Controller, modify application context.

I ran mvn gen from both core and web.

If I look at generated UserProfileController it uses GenericManager instead of UserProfileManage.. does that mean mvn gen does not generate dao or controllers and depends on Generic one.. !


Thanks

 
 
 
 
Sudhir Nimavat
Senior software engineer.
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught
 



From cricket scores to your friends. Try the Yahoo! India Homepage!
mraible

Re: mvn appfuse:gen -Dentity=Name does not generate Dao and Manager

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
The default behavior is to not generate Manager and DAO classes since the Generic implementations can be used and you only need to create bean definitions. If you don't like this behavior, change the "appfuse.genericCore" property to false in your pom.xml, or generate with this command. For example, "mvn appfuse:gen -Dentity=UserProfile -Dappfuse.genericCore=false".

Matt

On Nov 1, 2009, at 12:27 PM, || Sudhir Nimavat || wrote:

I have created a Spring MVC modular project and a very simple entity (UserProfile) with just one field.

Now I am trying to generate CRUD for UserProfile (Actually trying my first demo with appfuse) However when I run mvn appfuse:gen -Dentity=UserProfile It does not generate any DAO or Manager.. it does modify hibernate.cfg.xml, generate Controller, modify application context.

I ran mvn gen from both core and web.

If I look at generated UserProfileController it uses GenericManager instead of UserProfileManage.. does that mean mvn gen does not generate dao or controllers and depends on Generic one.. !


Thanks

 
 
 
 
Sudhir Nimavat
Senior software engineer. 
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught
 



From cricket scores to your friends. Try the Yahoo! India Homepage!

|| Sudhir Nimavat ||

Re: mvn appfuse:gen -Dentity=Name does not generate Dao and Manager

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
Thanks Matt..
 
 
 
 
Sudhir Nimavat
Senior software engineer.
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught
 



From: Matt Raible <[hidden email]>
To: [hidden email]
Sent: Mon, 2 November, 2009 6:49:00 AM
Subject: Re: [appfuse-user] mvn appfuse:gen -Dentity=Name does not generate Dao and Manager

The default behavior is to not generate Manager and DAO classes since the Generic implementations can be used and you only need to create bean definitions. If you don't like this behavior, change the "appfuse.genericCore" property to false in your pom.xml, or generate with this command. For example, "mvn appfuse:gen -Dentity=UserProfile -Dappfuse.genericCore=false".

Matt

On Nov 1, 2009, at 12:27 PM, || Sudhir Nimavat || wrote:

I have created a Spring MVC modular project and a very simple entity (UserProfile) with just one field.

Now I am trying to generate CRUD for UserProfile (Actually trying my first demo with appfuse) However when I run mvn appfuse:gen -Dentity=UserProfile It does not generate any DAO or Manager.. it does modify hibernate.cfg.xml, generate Controller, modify application context.

I ran mvn gen from both core and web.

If I look at generated UserProfileController it uses GenericManager instead of UserProfileManage.. does that mean mvn gen does not generate dao or controllers and depends on Generic one.. !


Thanks

 
 
 
 
Sudhir Nimavat
Senior software engineer. 
Quick start global PVT LTD.
Baroda - 390007
Gujarat, India

Personally I'm always ready to learn, although I do not always like being taught
 



From cricket scores to your friends. Try the Yahoo! India Homepage!



Yahoo! India has a new look. Take a sneak peek.