* Matt Raible: > On 6/10/07, Gabriel de Perthuis > <[EMAIL PROTECTED]> wrote: >> * Gabriel de Perthuis: >> > I have the same problem: >> > my app was generated from the Struts 2 simple artifact and a new maven >> > repository, using http://appfuse.org/display/APF/AppFuse+QuickStart >> > I added the attached POJO, written by following >> > http://appfuse.org/display/APF/Persistence >> > I am using hibernate, and added the class to the mapping.cfg.xml with >> > what seems the right package name: >> > >> > <mapping class="com.yakarouf.model.Employee"/> >> > >> > The POJO class gets compiled in target/classes. >> > >> > Basically, it's straightforward applications of the first two >> tutorials. >> > But running appfuse:gen, nothing seems to happen. >> > How can I find out what went wrong? >> >> Oh, got it: >> mkdir target/appfuse >> solves this problem. > > You shouldn't need to mkdir target/appfuse if you run "appfuse:gen" > first. Can you confirm that if you run "mvn clean appfuse:gen", the > files are generated correctly?
I was wrong when I wrote that "mkdir" worked; I was not able to reproduce it 5 minutes later. I think I spotted the problem this time. It's really stupid, but in the database some of my entities did generate tables and others didn't. No warning from hbm2ddl despite the mapping config file. So, after dropping the database, and running: mvn clean compile hibernate3:hbm2ddl Check the database, only some entities get mapped. The rest must have some bug. If I then run mvn clean appfuse:gen -Dentity=Department I get generated code for Department. I'll go add dire warnings to the wiki now. >> Seems to be filed here: >> http://issues.appfuse.org/browse/APF-793 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
