Hibernate源码解析(3)
Hibernate源码解析(三)
public static final LoadType GET = new LoadType("GET") .setAllowNulls(true) .setAllowProxyCreation(false) .setCheckDeleted(true) .setNakedEntityReturned(false); public static final LoadType LOAD = new LoadType("LOAD") .setAllowNulls(false) .setAllowProxyCreation(true) .setCheckDeleted(true) .setNakedEntityReturned(false);
本文详细介绍了hibernate缓存机制,顺着介绍缓存,从源码角度介绍load与get的实质区别
详细介绍了下面四个参数
nakedEntityReturned;
allowNulls;
checkDeleted;
allowProxyCreation;