[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-1872) Hibernate should handle hbm.auto = update with views

Petr Polak (JIRA) noreply at atlassian.com
Wed May 6 12:44:13 EDT 2009


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1872?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33113#action_33113 ] 

Petr Polak commented on HHH-1872:
---------------------------------

Maybe another solution would be to allow to "exclude" entity from schema generation. 

> Hibernate should handle hbm.auto = update with views
> ----------------------------------------------------
>
>                 Key: HHH-1872
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1872
>             Project: Hibernate Core
>          Issue Type: Improvement
>          Components: metamodel
>    Affects Versions: 3.2.0.cr2
>            Reporter: Sami Dalouche
>            Priority: Minor
>
> Let's consider a situation where Hibernate domain objects are mapped to a view.
> Everything works fine unless hbm.auto = update. In this case, Hibernate tries to update the schema, and of course, it fails.
> In this case, hibernate should detect that the object is a view, and only check whether the schema is compatible. It should not try to update the metadata.

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