smartnews / jpa-entity-generator

Lombok-wired JPA entity source code generator, Gradle and Maven supported.
MIT License
211 stars 72 forks source link

Table not exists if multiple DB schema exists #23

Closed ironsweet closed 5 years ago

ironsweet commented 5 years ago

I have multiple schemas. One has the table I need and one does not. Somehow I got "table not exists" error when importing from one schema. And yes, I have specified the right schema in connection string.

Assuming I want to generate entity for A.table1 but it complains B.table doesn't not exist.

I'm doing more test locally.

Updates: Mysql 8.0.13 has this issue. Mysql 5.1.46 is working.

seratch commented 5 years ago

Right, I have recognized that MySQL JDBC driver 6+ behaves differently. But I'm still not sure how we should deal with it yet.

ironsweet commented 5 years ago

Since it's a code gen tool, I'm totally fine if it's using a different version of mysql driver. Thanks~