[jboss-user] [JBoss Tools (users)] - Re: Hibernate Code Generation

msorokin do-not-reply at jboss.com
Tue Jan 6 10:48:10 EST 2009


I've just created a java project with hibernate , connected to MySQL and generated the files using reverse engineering quite successfully. 

This is my .reveng.xml file
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-reverse-engineering PUBLIC "-//Hibernate/Hibernate Reverse Engineering DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-reverse-engineering-3.0.dtd" >

<hibernate-reverse-engineering>
	<table-filter match-name="table-name" match-catalog="database"></table-filter>
</hibernate-reverse-engineering>

I think you need to click the "Table Filters" view and there  select the table you want to work with. 

I guess you used "Type Mappings" to generate your reveng.xml file 

I also recommend you to watch our demo video that shows how you can generated those files.

http://docs.jboss.org/tools/movies/demos/Reverse_engineering_and_code_generation/Reverse_engineering_and_code_generation.htm

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4199826#4199826

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4199826



More information about the jboss-user mailing list