Hi,
The forum search is broken and has been for a long time. Someone needs to get on that, everytime I have a question I have to make a thread since I can't go to page 2 on the search! I know this has been covered before but I've got to ask it again.
I have a simple entity class like this:
Code:
@Entity
public class User {
@Id @GeneratedValue(strategy=GenerationType.auto)
private Short id;
private Short order;
// other properties & getters / setters
}
creating this table fails because User is an sql keyword and so is order. I know i can specify the sql with @Table & @Column, but I generally prefer to not think sql at all, I like all of that being totally abstracted. I could change the names of these properties but that's even worse.
So I'm wondering if there's a way to tell hibernate to put the table & column names in [ ] ? Really I think this should be a standard feature, if a specific sql is name is unspecified, check to see if it's a keyword, and if so, bracket it.
Does hibernate do that some how? if not it should!!