在hibernate中,如果在xml配置文件中配置了<class table="ADDRESS" lazy="false" name="xxx.dao.impl.Address">,这里的lazy=false对应的annotation配置为@org.hibernate.annotations.Proxy(lazy = false)
其他的一些对应包括:
<property name="updatedDate" type="java.sql.Timestamp" access="field">
@org.hibernate.annotations.Type(type = "java.sql.Timestamp")
<many-to-one fetch="join" outer-join="true" column="CHANNEL" access="field" name="channel" insert="false" update="false"/>
@Fetch
<column name="QUANTITY" sql-type="NUMBER(5)" not-null="false"/>
@Type
参考文章《lazy in annotations from xml》,通过Google "hibernat annotation lazy"找到。:)