So, I stepped through the code and I can see that the object is loaded and stored in handler of type JavassistLazyInitializer but the values aren't persisted into the entity. The code has a split in MultiClassesQueryLoader.executeLoad() where it checks if it's a single item, or multiple. Single items go through lines 89-97, and lists are covered in 99 onwards. The multiple result code is much more extensive. I've updated my test code to use JPA and ehcache and a few other items like @GeneratedValue on the id of the @MappedSuperClass and I still can't get it to reproduce. It's pretty close to what I have so far. The main difference I have is Spring, and @Transactional on the DAO layer. I think I might have to take my code and chop away parts until it works. |