[JBoss-user] [JBoss Eclipse IDE (users)] - DefaultReverseEngineeringStrategy
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=bbop=viewtopict=74849 Anyway, now I have the Java classes, but I need to change the generator class=assigned to generator class=increment within the hbm files. Then I need to generate the Java again from the modified hbm files, without going back from the database anymore! How shall I do that ? Is there some undocumented feature to use instead of DefaultReverseEngineeringStrategy ? Etienne View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927459#3927459 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927459 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy
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 files, and they are there. Also, the package name does not look to be taken into account when producing the Java files. Etienne View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927482#3927482 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927482 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy
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=bbop=viewtopicp=3927483#3927483 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927483 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy
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 an error from Hibernate at run time for classes created for composite keys, saying he does not find the hbm file for them. Of course they are no such files. Etienne I will t View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927498#3927498 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927498 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy
...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.DefaultReverseEngineeringStrategy, but the package is not generated. ...and if you have a custom revengstrategy it implements DelegateReverseEngineringStrategy so it does not swallow the table to package/classname calls ? I don't know how to do that. Probably I would need to dip into your source code for a few days before being efficient. Is this what you mean ? View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927533#3927533 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927533 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBoss Eclipse IDE (users)] - Re: DefaultReverseEngineeringStrategy
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, especially that the code is right, I did not figure out that this functionality was so much on the edge and beta 3 was contained in the bundle. I think I will become a big fan of JBoss, and look forward to using the Seam product in a few months. Etienne View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3927555#3927555 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3927555 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user