【发布时间】:2011-01-14 12:49:33
【问题描述】:
@Column(name="open")
在休眠中使用 sqlserver 方言。
[SchemaUpdate] Unsuccessful: create table auth_session (id numeric(19,0) identity not null, active tinyint null, creation_date datetime not null, last_modified datetime not null, maxidle int null, maxlive int null, open tinyint null, sessionid varchar(255) not null, user_id numeric(19,0) not null, primary key (id), unique (sessionid))
[SchemaUpdate] Incorrect syntax near the keyword 'open'.
我希望 hibernate 在创建表时使用带引号的标识符。
除了重命名字段之外,关于如何处理这个问题的任何想法?
【问题讨论】:
标签: java sql-server hibernate orm jpa