首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

oracle 表設計時列名同關鍵字衝突時 hibernate 怎么映射

2012-08-10 
oracle 表設計時列名同關鍵字衝突時 hibernate 如何映射?假如一個表中的列名是:level這個正好同oracle一關

oracle 表設計時列名同關鍵字衝突時 hibernate 如何映射

?

假如一個表中的列名是:level

這個正好同oracle一關鍵字相同,hibernate如何映射呢,以下是一種解決方式:

?

?

@Column(name = ""LEVEL"", unique = true, nullable = false, precision = 4, scale = 0)

public Long getLevel() {

return this.level;

}

热点排行