[jboss-jira] [JBoss JIRA] Created: (JBIDE-359) hibernate reverse engineering does not set "schema" attribute in .hbm.xml
bugra uytun (JIRA)
jira-events at jboss.com
Sun Sep 3 16:47:44 EDT 2006
hibernate reverse engineering does not set "schema" attribute in .hbm.xml
-------------------------------------------------------------------------
Key: JBIDE-359
URL: http://jira.jboss.com/jira/browse/JBIDE-359
Project: JBoss IDE
Issue Type: Bug
Components: Hibernate Tools
Environment: windows xp, eclipse 3.2, hibernate tools 3.2.0.b7
Reporter: bugra uytun
Assigned To: Max Andersen
i set the schema in hibernate.cfg.xml with:
---
<property name="hibernate.default_schema">mySchema</property>
---
after reverse engineering the DB I get the .hbm.xml file
---
...
<hibernate-mapping>
<class name="com.someclass" table="MY_TABLE">
...
---
notice the missing 'schema="mySchema"'. if you're not using the default DB schema without this attribute you will get the following error:
---
org.springframework.jdbc.BadSqlGrammarException: Hibernate operation: could not load an entity: [com.someclass#1];
---
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list