[hibernate-issues] [Hibernate-JIRA] Created: (ANN-726) IncrementGenerator ignores catalog/schema of @Table annotation in domain object
Michael Thiele (JIRA)
noreply at atlassian.com
Mon Apr 14 05:48:33 EDT 2008
IncrementGenerator ignores catalog/schema of @Table annotation in domain object
-------------------------------------------------------------------------------
Key: ANN-726
URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-726
Project: Hibernate Annotations
Issue Type: Bug
Affects Versions: 3.3.1.GA, 3.3.1.CR1
Environment: Hibernate 3.2.6.GA, Sybase ASE
Reporter: Michael Thiele
The Generator only uses the default schema and catalog, if set. It ignores the schema and catalog set in the @Table annotation in the domain class:
example:
default schema set in hibernate.cfg.xml:
<property name="default_schema">someDefaultSchema</property>
schema and catalog set in domain object:
@Table(name = "someTable", catalog = "someCatalog", schema = "someOtherSchema")
SQL statement executet:
select max(someId) from someDefaultSchema.someTable
catolog is missing in statement, schema is someDefaultSchema instead of someOtherSchema.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list