JPA, Hibernatt working