]
Max Rydahl Andersen commented on JBIDE-18716:
---------------------------------------------
set your hibernate.default_catalog attribute and this catalog entry will not be added.
Generate entities from tables causes validation errors with MySQL
-----------------------------------------------------------------
Key: JBIDE-18716
URL:
https://issues.jboss.org/browse/JBIDE-18716
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: forge, hibernate
Affects Versions: 4.2.0.Final
Reporter: Xavier Coulon
When "generating entities from tables" using a MySQL datasource (eg:
{{jdbc:mysql://localhost:3306/conferences}}), a {{conference}} table gives a
{{Conference}} class with the following annotation:
{code}
@Table(name="Conference"
,catalog="conferences"
)
{code}
but the JPA validator reports an error on {{catalog="conferences"}}, claiming
that
{quote}
"conferences" cannot be resolved for table "Conference"
{quote}
This happens with both JPA tooling and Forge tooling.