Hello,
I am using the latest version of Hibernate with a Firebird SQL database. I am using the EJB3-Annotations style of coding. I have got a class "Article" that has a field "length". It looks like that:
Code:
@Entity
@Table(name = "Articles")
public class Article implements Serializable {
private static final long serialVersionUID = 2511213307378988331L;
@Id
@GeneratedValue(strategy = GenerationType.AUTO)
protected Long id;
private int length;
public Long getId() {
return id;
}
public int getLength() {
return this.length;
}
public void setLength(int length) {
this.length = length;
}
}
I've set the configuration attribute "hibernate.hbm2ddl.auto" to "create" for testing. Every entity table gets created automatically except of the articles table. When I add
Code:
@Column(name = "`length`")
to the length field, everything seems to work. But then the only column in lower case is the length column. I would like to avoid this and let hibernate do everything.
Is this a bug or a feature and what am I supposed to do?
Regards and thanks for responses,
Sir-Archimedes