[hibernate-issues] [Hibernate-JIRA] Updated: (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 04:42:23 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6737?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Hardy Ferentschik updated HHH-6737:
-----------------------------------
Description:
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}
was:
org.hibernate.test.annotations.beanvalidation.MinMax.java
org.hibernate.test.annotations.beanvalidation.Range.java
MinMax.java
@Max(10)
@Min(2)
@Column(name="`value`")
private Integer value;
generates:
create table MinMax (
id BIGINT not null,
"value" INTEGER check (value<=10 AND value>=2),
primary key (id)
)
and so the value reserved word is not quoted in the constraints
same problem exists in "Range.java"
create table Range (
id BIGINT not null,
"value" INTEGER check (value<=10 AND value>=2),
primary key (id)
)
> 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