[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-6737) column names in Constraint is not quoted even column name is quoted in mapping

Hardy Ferentschik (JIRA) noreply at atlassian.com
Mon Oct 17 05:55:19 EDT 2011


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hardy Ferentschik resolved HHH-6737.
------------------------------------

    Resolution: Fixed

> column names in Constraint is not quoted even column name is quoted in mapping 
> -------------------------------------------------------------------------------
>
>                 Key: HHH-6737
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6737
>             Project: Hibernate Core
>          Issue Type: Bug
>            Reporter: Strong Liu
>            Assignee: Strong Liu
>             Fix For: 4.0.0.next
>
>
> org.hibernate.test.annotations.beanvalidation.MinMax.java
> org.hibernate.test.annotations.beanvalidation.Range.java
>   
> MinMax.java
> {code}
>  @Max(10)
>  @Min(2)
>  @Column(name="`value`")
>  private Integer value;
> {code} 
> generates:
> {noformat}
> create table MinMax (
>         id BIGINT not null,
>         "value" INTEGER check (value<=10 AND value>=2),
>         primary key (id)
>     )
> {noformat}
>  
> and so the value reserved word is not quoted in the constraints
> same problem exists in "Range.java"
>  
> {noformat}
>  create table Range (
>         id BIGINT not null,
>         "value" INTEGER check (value<=10 AND value>=2),
>         primary key (id)
>     )
> {noformat}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list