Tag Archives: encapsulation

Hibernate direct field acess and encapsulation

I am a big fan of the Hibernate’s direct field access functionality. I am not sure why ”property” access is the default instead of “field”. Direct field access allows me to control the number of getters/setters that are actually needed from the DAO Client’s perspective. … Continue reading

Posted in Hibernate, Java | Tagged , , | 1 Comment

Missing “friend” class access specifier in Java?

I am in the process of rearchitecting a fairly large legacy web application. Almost all of the classes in the old code base are public classes with the key classes containing mostly public (and sometimes static) methods. I am tasked to modularize this application … Continue reading

Posted in Java | Tagged , , | 2 Comments