static « Property « JPA Q&A





1. Access private persistent properties from static inner class    forum.hibernate.org

Surely someone must have had this problem before.... If you try to access a private persistent property from an inner class, it fails silently, making no change to the database. Code: public class Robot { // Persistent property private int number; public int getNumber() {return number;} ...