[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2252) Fix for HHH-2208 rebuilds Settings for each table mapping

Alex Burgel (JIRA) noreply at atlassian.com
Fri Nov 17 13:42:04 EST 2006


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2252?page=comments#action_25367 ] 

Alex Burgel commented on HHH-2252:
----------------------------------

yeah, i just saw that new case.

i used the "clone this issue" button to create this case. which is why it has the same description as HHH-2208. i didn't realize it would create the exact same issue without allowing me to edit it first.

you can ignore the description and mark this as a duplicate of HHH-2251

you can also use my patch for HHH-2251, its really trivial.

> Fix for HHH-2208 rebuilds Settings for each table mapping
> ---------------------------------------------------------
>
>          Key: HHH-2252
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2252
>      Project: Hibernate3
>         Type: Improvement

>   Components: core
>     Versions: 3.2.0.ga
>  Environment: Hibernate 2.1 beta 4, Oracle 8i
>     Reporter: Alex Burgel
>      Fix For: 3.2.1
>  Attachments: settings.patch
>
>
> When using SchemaUpdate, the DatabaseMetaData.getTableMetadata() looks for a table with the correct table name in any database schema and it take the first one it found. This behavior is uncorrect if I have a table  existing in different schemas. 
> The correct behavior would be to first look in the schema with the login name and after in any schema.
>   user1.article
>   user2.article
> I connected whith user2, DatabaseMetaData should first look for user2.article, then if not found to %.article.
>   Adrien

-- 
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