r/ProgrammerHumor • • Jul 20 '18

Every Time

Post image
52.2k Upvotes

749 comments sorted by

View all comments

Show parent comments

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.

13

u/mw9676 Jul 20 '18

An async call needed to complete?

1

u/Dillawnz Jul 20 '18

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).

1

u/Dillawnz Jul 20 '18

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.