[jbosstools-issues] [JBoss JIRA] (JBIDE-18716) Generate entities from tables causes validation errors with MySQL

Max Rydahl Andersen (JIRA) issues at jboss.org
Thu Oct 30 06:23:35 EDT 2014


    [ https://issues.jboss.org/browse/JBIDE-18716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13016008#comment-13016008 ] 

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.



--
This message was sent by Atlassian JIRA
(v6.3.1#6329)


More information about the jbosstools-issues mailing list