Solved problems. Now finally trying to make Hibernate/JPA work.