I'm no expert, but I think you have to explicitly specify asynchronicity for Hibernate and it wasn't used for many purposes on the project (definitely not here, at least).
This was last summer so I don't remember it super clearly, but I think the Hibernate session was ending prematurely. Then for some reason doing someEntity.getAttribute() prevented it.
8
u/robi4567 Jul 20 '18
Did you have to wait the 10 seconds and if so did you ever find out why you had to wait the 10 seconds. Because that makes no sense to me.