I m 学习是温和的。 进行测试时,我引用了<代码>session.load,其中无效。 在我走过这条路后,我就没有发生任何事情——我预计会收到反对意见。 Than,我宣布Eval(alt+F8),结果:
bookFailedLoad = {rs.hibernateTest.model.Book$$EnhancerByCGLIB$$5dd17391@2088}Method threw org.hibernate.ObjectNotFoundException exception. Cannot evaluate rs.hibernateTest.model.Book$$EnhancerByCGLIB$$5dd17391.toString()
CGLIB$BOUND = true
CGLIB$CONSTRUCTED = true
CGLIB$CALLBACK_0 = {org.hibernate.proxy.pojo.cglib.CGLIBLazyInitializer@2094}
CGLIB$CALLBACK_1 = null
isbn = null
name = null
publisher = null
publishDate = null
price = 0
chapters = null
How did hb inform POJO that object is not valid. Please, could someone recommend me an article to help me understand what s happening under the hood before I stock in adventure of debugging hibernate source.