changed to use JPA API instead of hibernate API