[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-726) IncrementGenerator ignores catalog/schema of @Table annotation in domain object

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat May 31 15:04:33 EDT 2008


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30296 ] 

Emmanuel Bernard commented on ANN-726:
--------------------------------------

Can you provide a test case, I am not entirely sure what you mean.

> 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.CR1, 3.3.1.GA
>         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