2016-04-15 74 views
0

Hibernate 5.1有指定懶惰字段的提取組的選項。 (當然這需要字節碼增強)。有文檔說明如何使用@LazyGroup指定抓取組,但找不到任何要在hbm中標記懶惰組的文檔。在hibernate 5.1.0中相當於@LazyGroup的hbm相當於hibernate 5.1.0

@Basic(fetch = FetchType.LAZY) 
@LazyGroup("lobs") 
private String name; 

hbm : <property name="name" type="string" lazy="true" ???="lobs"> 
<column name="name" /> 
</property> 

什麼是屬性名稱來代替「???」 ?。 lazygroup =「lobs」不起作用。

回答