-
1. Re: Seam reverse engineering tool
theute Dec 20, 2005 11:20 AM (in response to gavin.king)"gavin.king@jboss.com" wrote:
The Hibernate Tools Seam application reverse engineering tool is now ready for use. You can download it here:
http://download.jboss.com/jbosside/builds/nightly/buildResults.html
You will need a current CVS build of Seam.
You'll also need to upgrade the hibernate3.jar, hibernate-annotations.jar and hibernate-entitymanager.jar files distributed with JBoss (note that there may be multiple copies of the jars in your JBoss install). Use Hibernate 3.1, HA 3.1beta7, HEM 3.1beta5. Actually, everyone using Seam-managed persistence contexts should do this, not just people using the tool.
Of course we are going for something easier to install ;)
But we need to wait on next JBoss AS 4.0.4RC release. -
2. Re: Seam reverse engineering tool
matthew.edwards Jan 21, 2006 4:29 PM (in response to gavin.king)Can you use the tools to create a CRUD app from annotated entity beans (ejb3)?
-
3. Re: Seam reverse engineering tool
gavin.king Jan 21, 2006 4:32 PM (in response to gavin.king)This is conceptually possible, but not sure if it has been exposed via the eclipse GUI yet. Max posted here on this topic recently. Forget what he said. You might have to use the Ant task.
-
4. Re: Seam reverse engineering tool
maxandersen Jan 21, 2006 4:39 PM (in response to gavin.king)it is possible, just don't select "reverse engineering" in the artifact launcher - then we will just use whatever mappings have been configured in the hibernate console configuration
p.s. remember run eclipse with jdk 5 and to enable annotations on the hibernate console configuration otherwise we can't load the annotated classes. -
5. Re: Seam reverse engineering tool
gavin.king Jan 25, 2006 8:54 AM (in response to gavin.king)This stuff is now MUCH easier to try out.
You need:
* current JBoss 4 or JBoss head CVS build
* current Seam CVS build
* current Hibernate Tools nightly build -
6. Re: Seam reverse engineering tool
vlasov01 Mar 6, 2006 11:48 PM (in response to gavin.king)Is it possible to take into account FK relationships during reverse engineering to generate One-to-Many annotations?
I'm using JBossIDE-200602280509-nightly-Bundle-win32.zip with MySQL. -
7. Re: Seam reverse engineering tool
gavin.king Mar 7, 2006 2:53 AM (in response to gavin.king)Yes, of course.
-
8. Re: Seam reverse engineering tool
vlasov01 Mar 7, 2006 11:11 AM (in response to gavin.king)Thank you for your reply. I've tried to do reverse engineering on 3 tables with FK. The generated code is working, but there is no any relations between generated classes.
From SEAM documentation it is not clear how to configure the tool to pickup FK. Could you please provide some references. -
9. Re: Seam reverse engineering tool
maxandersen Mar 7, 2006 1:14 PM (in response to gavin.king)using the right drivers will be a good start.
old mysql drivers does not even bother asking the database if there is foreign keys in it. -
10. Re: Seam reverse engineering tool
vlasov01 Mar 7, 2006 9:40 PM (in response to gavin.king)I'm using MySQL Connector/J 3.1.2. Does it meet requirements for FK reverse engineering in SEAM?
-
11. Re: Seam reverse engineering tool
maxandersen Mar 8, 2006 2:29 AM (in response to gavin.king)if you have defined the foreign keys in the db AND the output has relationships corresponding to the fk's then yes the driver is jdbc compliant; if not then upgrade.
-
12. Re: Seam reverse engineering tool
vlasov01 Mar 8, 2006 6:24 AM (in response to gavin.king)I've used the same JDBC driver as in JBOSS presentation at http://www.jboss.com/products/seam/SeamHBTools.html and I have FK defned. But output has no relationships.
-
13. Re: Seam reverse engineering tool
maxandersen Mar 8, 2006 6:26 AM (in response to gavin.king)can't say i just know that it works fine on mysql when you have compliant drivers and database.
-
14. Re: Seam reverse engineering tool
theute Mar 8, 2006 6:31 AM (in response to gavin.king)You need to use InnoDB tables