setter « POJO « JPA Q&A





1. How to overwrite POJO's setter method while using hbm2java    stackoverflow.com

I am using hbm2java to convert my *.hbm files into *.java files. I want to modify the setter method of one of my property. When I use the "<meta attribute="class-code">" in ...

2. Setting POJO Properties without using setters    forum.hibernate.org

Hibernate version: 3.1.2 Hello Hibernate World ! How can I get or set any property of a POJO without use the getter and setters ? Hibernate knows every detail about a POJO, but I don't know what hibernate class should I use in this case. Consider the following class: Code: package events; import java.util.*; public class Person { ...