[hibernate-issues] [Hibernate-JIRA] Created: (HHH-6737) column names in Constraint is not quoted even column name is quoted in mapping
Strong Liu (JIRA)
noreply at atlassian.com
Mon Oct 17 03:03:23 EDT 2011
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
@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)
)
--
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