vlad wrote:
Not only that it works, but it works like charm. Check out
this test case on GitHub and run it yourself if you don't believe me.
Code:
@Entity(name = "Table")
@javax.persistence.Table(name = "\"table\"")
public static class Table {
@Id
private Long id;
@Column(name = "\"number\"")
private Integer number;
@Column(name = "\"from\"")
private String from;
@Column(name = "\"select\"")
private String select;
}
And why wouldn't it work? Its' standard JPA:
Quote:
Using annotations, a name is specified as a delimited identifier by enclosing the name
within double quotes, whereby the inner quotes are escaped, e.g.,
@Table(name="\"customer\"").
i use intellij idea persistence generate persistence mapping.
Code:
@Basic
@Column(name = "process_describe")
public String getProcessDescribe() {
return processDescribe;
}
public void setProcessDescribe(String processDescribe) {
this.processDescribe = processDescribe;
}
if i use 'describe' named my column.it will error.And i can't resolve it used \". but i just rename 'process_describe'.it will success without '\"'. i think trouble is in 'describe'. Probably the problem is beyond my understanding of hibernate.I will record this problem until I can solve him.Later I will go to reading your code on github.Thank you for your reply