[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

--------------------------------------------------------------
Hello,

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

Entity
@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:   

Entity
@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. 

Thanks, 

Eric J.
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/602330#602330]

Start a new discussion in JBoss Tools at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2128]

-------------- 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