Thanks Matt, I added an entry into the Hibernate.cfg.xml file for each of the Entities and I am still getting the same error. I am using a basic struts archetype by the way.
Thanks Vincent On Tue, Apr 15, 2008 at 4:18 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > Hibernate implementation in AppFuse requires that entities are added to > hibernate.cfg.xml. I believe this should be done as part of the "gen-model" > mojo. I've tried to get away from requiring this, but never figured out how > to do it. > > Matt > > > On Apr 15, 2008, at 2:14 PM, Vincent Ramdhanie wrote: > > Hello All, > > I was experimenting with the appfuse maven plugin and tried the > > following: > > > > Based on an existing database in MySQL I ran appfuse:gen-model and this > > worked fine by generating all the Entities exactly as expected. I then tried > > appfuse:gen -Dentity=Member (Member being one of the Entities generated). I > > got this error: > > > > resource: com/vincentramdhanie/supernova/model/Member.hbm.xml not found > > > > It seems to be looking for the Hibernate XML configuration file even > > though the classes generated are all properly annotated. > > > > My question is this: is there a setting somewhere where I need to > > specify that this project should use annotations rather than the xml config > > files? I have been looking but couldn't find anything. And I couldn't find a > > similar question in the archives. > > > > Thanks > > Vincent > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Vincent Ramdhanie Vinette Technologies
