[jboss-user] [JBoss Tools] - JPA reverse engineer & MySQL

Eric J. Van der Velden do-not-reply at jboss.com
Wed Apr 27 14:12:29 EDT 2011

Eric J. Van der Velden [http://community.jboss.org/people/ericjvandervelden] created the discussion

"JPA reverse engineer & MySQL"

To view the discussion, visit: http://community.jboss.org/message/602330#602330


When I use JPA Tools to reverse engineer  tables in a MySQL database, called sample2 here, I get for table F:

@Table(name = "F", catalog= "sample2")
public class F implements java.io.Serializable {

But if there is a database connection (which you give when you right click on your entry in the 'Database Connections' view, for example), so that validation is on, this is not validated; I get

catalog "sample2" cannot be resolved for table "F"

But when I change "catalog" to "schema" then it is validated. So this is OK:   

@Table(name = "F", schema= "sample2")
public class F implements java.io.Serializable {

So is reverse engineering in case of MySQL going OK by JPA Tools, or am I doing something wrong? I use the JBoss Tools 3.2 stable. 


Eric J.

Reply to this message by going to Community

Start a new discussion in JBoss Tools at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110427/d18a956e/attachment.html 

More information about the jboss-user mailing list