Hi Matt, JPA framework / gen drive me craze! I almost raised a new thread in Nabble for that! :o All because when I set JPA and ran 'gen' I always get ERRO: Duplicate mapping of role... I, my self, ask the problem! I, my self, give the feedback/solution: so what I've done??! I had to edit persistence.xml removing 'role' and 'appuser' mappings so that run 'appfuse:gen' properly (no erros) and then restore them (Cntrl+Z) and (Cntrl+S) so that run 'jetty:run-war' to get my app deployed and running in browser suitably. An alternative to this workaround would be remove 'hibernate.cfg.xml' also in 'target/classes' (as well as the instruction: 'Setup your project to use JPA<http://appfuse.org/display/APF/Using+JPA#UsingJPA-setup> ') Matt, shouldn't it be good idea AppFuse delete this(ese) file(s) automaticlly??! Or even if this implementation is pretty hard what about put a blue Information box in AMP<http://appfuse.org/display/APF/AppFuse+Maven+Plugin#AppFuseMavenPlugin-ampcrud>page (indicating JPA instructions)??!
Ice-Man 2009/2/17 Matt Raible <m...@raibledesigns.com> > By changing the persistence framework you're using in pom.xml. The iBATIS > and JPA tutorials on the wiki show you how to do this. > > Matt > > > On Tue, Feb 17, 2009 at 7:58 AM, Ice-Man <derlon.aliend...@gmail.com>wrote: > >> Then I suppose that's matter of appfuse:gen. >> But, how can I change the setting / approaching of DAO generating??! >> >> Ice-Man >> >> 2009/2/17 Matt Raible <m...@raibledesigns.com> >> >> gen-model doesn't generate POJOs that are specific to any persistence >>> framework. >>> >>> Matt >>> >>> >>> On Tue, Feb 17, 2009 at 6:48 AM, Ice-Man <derlon.aliend...@gmail.com>wrote: >>> >>>> Hi, mates I'd like to know how to make *gen-model* use *JPA* (instead >>>> of only Hibernate mode)??! Any tip is welcome, Ice-Man >>>> ------------------------------ >>>> View this message in context: (AppFuse 2.0.2) gen-model Using >>>> JPA(instead of Hibernate >>>> mode)<http://www.nabble.com/%28AppFuse-2.0.2%29-gen-model-Using-JPA%28instead-of-Hibernate-mode%29-tp22057640s2369p22057640.html> >>>> Sent from the AppFuse - User mailing list >>>> archive<http://www.nabble.com/AppFuse---User-f2370.html>at Nabble.com. >>>> >>> >>> >> >