Thanks for the suggestion. The problem is resolved. I feel really silly now.
In looking through for the multiple files I realized that I was using the wrong syntax in the hibernate.cfg.xml file. Rather than using the class mapping, I was using the resource mapping. That was causing hibernate to look for configurations in the xml resource file rather than in the class. Thanks for the suggestions again, and sorry about the waste of time. Vincent On Tue, Apr 15, 2008 at 4:23 PM, Matt Raible <[EMAIL PROTECTED]> wrote: > Make sure you only have one hibernate.cfg.xml in your project. > Matt > > On Apr 15, 2008, at 2:21 PM, Vincent Ramdhanie wrote: > > 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] > > > > > > >
