entity must getters and setters be public? do they even need to exist for it tow work?
No, they are not required. Hibernate supports several property access strategies. Google for something like "hibernate accessor type"
If I have a library that has some pojo class, can I extend it and just add @Entity to it so hibernate will pick it?
Обсуждают сегодня