The fact that there is a hibernate.cfg.xml file in src/test/resources is a bug. You should delete it.
On Wed, Sep 9, 2009 at 4:16 PM, measwel <marek_karczew...@yahoo.com.au>wrote: > > The one in main/resources has the Person mapping (added by the gen plugin, > as > I didnt do it) > The one in test/resources does not have that mapping. > > Testing is okay (except for DB keys violations) when the mapping is added > to > the hibernate.cfg.xml in test/resources. The gen plugin doesnt do it > automatically it seems. > > > > Make sure you're editing the correct file. In other words, delete the one > in > src/test/resources and modify the one in src/main/resources. > > -- > View this message in context: > http://www.nabble.com/generated-class-throws-exceptions-tp25373508s2369p25374075.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >