JBoss Community

JPA reverse engineer & MySQL

created by Eric J. Van der Velden in JBoss Tools - View the full discussion

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

Start a new discussion in JBoss Tools at Community