Modified classes. Endsession does not work as intended. Could be due to
missing JPA annotations or a bug.