[jbosstools-issues] [JBoss JIRA] (JBIDE-9535) JPA: take into account hibernate.default_schema/hibernate.default_catalog when validate Table
Dmitry Geraskov (JIRA)
jira-events at lists.jboss.org
Mon Aug 20 10:00:16 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-9535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dmitry Geraskov resolved JBIDE-9535.
------------------------------------
Fix Version/s: 3.4.0.M1
(was: LATER)
Resolution: Done
> JPA: take into account hibernate.default_schema/hibernate.default_catalog when validate Table
> ---------------------------------------------------------------------------------------------
>
> Key: JBIDE-9535
> URL: https://issues.jboss.org/browse/JBIDE-9535
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: hibernate
> Affects Versions: 3.3.0.M2
> Reporter: Dmitry Geraskov
> Assignee: Dmitry Geraskov
> Labels: new_and_noteworthy
> Fix For: 3.4.0.M1
>
>
> JPA validator doen't take into account hibernate.default_schema/hibernate.default_catalog when validates Table existance.
> Test case:
> 1. Create table mytable in schema test
> 2. in Persistence.xml add hibernate.default_schema=test
> 3. cerate Entity Mytable without @Table(schema="test")
> 4. Make a DTP connection to the databse
> OBSERVE: wrong error appiared (Table "Mytable" cannot be sesolved)
> add @Table(schema="test") - error disappeared
> Probably the properties should be processed like the project properties (Oveddide default schema/catalog)
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list