made cascadetype use plain JPA instead of hibernate.