You need to create the POJO, add it to the hibernate.cfg.xml file in the
resources directory
and run hibernate3:hbm2ddl plugin as described in the documentation


Lee Meador-3 wrote:
> 
> Warning - I'm brand new to appfuse and may betray my ignorance with the
> following questions.
> 
> I've read a bunch of the docs on appfuse:gen but some basic stuff seems to
> be missing. I used mvn to create an appfuse struts 2 basic application. I
> think the version was 2.0-m5 but I didn't make a note last week when I ran
> the archetype and don't know where to look on my application to find out.
> I
> went through the tutorial and all that works.
> 
> 1) Before running mvn appfuse:gen -Dentity=Name, what do you need to do. I
> get the impression that I should create a pojo similar to Person.java as
> defined in the tutorial. That's what I did.
> 
> You need to create the POJO, add it to the hibernate.cfg.xml file in the
> resources directory
> and run hibernate3:hbm2ddl plugin as described in the documentation
> 2) If creating the POJO is the right thing to do, where do you put it. I
> decided to put mine in src/main/java/com/mycompany/app/model. I used my
> own
> package names when I did the tutorial.
> 3) Where do you need to be when you run the mvn appfuse:gen command. I
> assume you do it in the base folder created when the architype was run.
> This
> is the folder with src and target folders in it and the main pom.xml file.
> 4) What gets created by appfuse:gen? I assumed it should be inside target.
> Googling for 'appfuse:gen' reveals some error messages shown here and
> there
> that would indicate target/generated-sources should now have files.
> 5) Does the "SUCCESS" message at the end of the mvn appfuse:gen mean the
> files were created? I couldn't find any messages showing anything was
> created the first time because of all the 'downloading' messages. So I ran
> it again and still don't see them, though the "downloading" messages only
> appear for 6 or 8 files. I also can't find any generated files (or even
> the
> folder mentioned before.)
> 6) What sort of problems in the POJO would cause NO error messages,
> SUCCESSFUL completion and no generated files? (Unless, of course, I just
> can't find the files.)
> 
> I suggest the end of the tutorial indicate, one more time, that you don't
> always have to go through all that to get a simple CRUD screen for a
> simple
> POJO. By the time I had finished, I only had a vague memory that I had
> read
> that somewhere.
> 
> I also suggest the appfuse maven plugin docs indicate the answers to some
> of
> the questions above. (Of course, I could be totally confused about this
> and
> all the docs in the world wouldn't solve my personal problems.)
> 
> Thanks.
> 
> 
> -- 
> -- Lee Meador
> Sent from gmail. My real email address is lee AT leemeador.com
> 
> 

-- 
View this message in context: 
http://www.nabble.com/basic-appfuse%3Agen-questions-tf4177741s2369.html#a11886037
Sent from the AppFuse - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to