用JPA創建具有保留字名的字段@Column(name="open")使用sqlserver方言和Hibernate。[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在創建表時使用引用的標識符。對如何處理這件事有什么想法.。除了改名外?
用JPA創建具有保留字名的字段
開心每一天1111
2019-07-11 10:17:59