member name collides with SQL request
-------------------------------------
Key: HCANN-44
URL:
https://hibernate.onjira.com/browse/HCANN-44
Project: Hibernate Commons Annotations
Issue Type: Bug
Affects Versions: 4.0.1.Final
Environment: mysql driver
Reporter: Paul Bernard AMADE
a description like this one:
----------------------------------
@Entity
public class DeploymentDescriptor implements Serializable {
@Id
@GeneratedValue
private long id;
@NaturalId
private String key ;
//+getter + setters
}
--------------------------------------
does not fire any Exception though it generates an illegal request underneath
-----------------------------------------
create table DeploymentDescriptor (
id bigint not null auto_increment,
key varchar(255),
primary key (id),
unique (key)
)
-----------------------------------------
the result is that the table jsut does not appear in the database
and programmer is not warned.
the names of classes and members should not collide with reserved words underneath!
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira