On 9/19/07, tnsilver <[EMAIL PROTECTED]> wrote: > > I'm using Appfuse 2.0-rc1 Struts 2 Basic against Oracle 9. I am using > appfuse-maven-plugin version 2.0. > When I run appfuse:gen-model it seems to me the tool is fetching records > from Oracle's ALL_TABLES data dictionary. It finally fails on a 'Duplicate > class name' because my ALL_TABLES contains duplicate table names owned by > different schema owners. > > I followed some threads (including here > http://www.nabble.com/Error-with-appfuse:gen-model-on-oracle-9-(Appfuse-2.0-rc1-Struts-2-Basic)-t4421565s2369.html) > and followed Matt's advice regarding the hibernate.reveng.xml under > src/main/resources. It has no effect. I'm still getting log messages from > org.hibernate.cfg.reveng.JDBCReader attempting to poll different schema's > tables, some of which names go against the patterns I defined.
Sorry, I gave you bad advice before - digging into the code a bit more, here's the logic: 1. If you specify a <revengfile> in the <configuration> of the appfuse-maven-plugin, it will use that. 2. If you don't specify a path, it looks in target/test-classes/hibernate.reveng.xml Based on #2, I *believe* you can put it in src/test/resources and it will work. If not, you might have to run "mvn resources:testResources" to get the file moved into the target directory. Hope this helps, Matt > > I then tried to down grade AMP to 2.0-m3-SNAPSHOT which is suppose to take > hibernate.reveng.xml into account (based on David L.Whitehurst's blog on > http://www.jroller.com/dlwhitehurst/entry/maven_mojo_love_for_the) but when > I ran it, it could not find the Oracle driver and failed. I gave up then. > > In fact, the more I look into this issue, the more confused I get. What's > the verdict? is AMP 2.0 gem-model working for Oracle? Can I some how control > the reverse engineering process when generating models from DB? > > This is a crucial feature for me. Please help. Thanks. > -- > View this message in context: > http://www.nabble.com/Is-hibernate.reveng.xml-ignored-by-AMP--How-to-control-reverse-eng--tf4480248s2369.html#a12775143 > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- http://raibledesigns.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
