Bug 376 : DDL creation produces invalid constraint-names for column names having back-ticks
Priority 
Low
Reported Version 
 
Logged By 
Ridcully
Status 
Fixed
Fixed Version 
2.7.7
Assigned To 
 
Product 
Ebean - core
Duplicate Of 
 
Created 
07/11/2011
Updated 
07/11/2011
Type 
Bug
 
Attachments 
No attachments

JAVA:
@Column(name="`name`", unique=true)
private String name;

DDL:
`name` varchar(255),
...
constraint uq_customer_`name` unique (`name`)

which, at least in MySQL, is not a valid constraint name.

 
woResponse

Upload a file