Max,
It's all ok with beta 4. The package is generated properly, the mapping file is
correct regarding the package and it runs smoothly.
I will re-generate the Java files after changing manually the generator in the
mapping files, this is absolutely fine.
Thanks very much for your support, esp
>> ...and your revengstrategy is set to blank ?
To do this, I have to check the reverse engineering checkbox, and I get an
ClassNotFoundException (mentioned in the link given in my first message).
So I read that I need to use this value
org.hibernate.cfg.reveng.DefaultReverseEngineeringStrateg
Brilliant, this is it. I confirm that the id are not in the constructors
anymore if the generator is set to 'increment'.
I also confirm that the package does not work for me. The JBoss Hibernate tool
creates the java files in the default package, and if I move them to another
package then I get
I expect the id to be removed from the full and minimal constructors.
I can remove them by hand as well.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3927483#3927483
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=392748
Hi Max,
Thanks for your prompt reply.
I have changed the generators type in the mapping files by hand, then run the
code generation again, but with "reverse engineering from JDBC connection"
unchecked. I thought this as what you meant.
I get an error saying that it does find the xx.hbm.xml fil
Hi,
How to reverse engineer from the hbm to the java files ?
I am trying to produce java code from my database. Thanks for the post about
the DefaultReverseEngineeringStrategy, because I had the same bug as explained
here http://www.jboss.com/index.html?module=bb&op=viewtopic&t=74849