Details
-
Feature Request
-
Resolution: Done
-
Major
-
3.3.0.M2
-
A new feature has been added that allows for Hibernate tooling to take into account the parameters: hibernate.default_schema and hibernate.default_catalog, when validating the existence of a table.
-
Documented as Feature Request
Description
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)