Beanlib will use a protected setter method but will not use a protected get method, meaning copyies of the following will always have null as the value for 'foo'l:
Have you checked out the class net.sf.beanlibProtectedReaderMethodFinder ?
You can use the singleton instance of this class to achieve what you need, by plugging it into either BeanPopulator or HibernateBeanReplicator, depending on what you are trying to do.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Beanlib will use a protected setter method but will not use a protected get method, meaning copyies of the following will always have null as the value for 'foo'l:
public class Slartibartfast {
private String foo;
protected String getFoo() {
return foo;
}
protected void setFoo(String newFoo) {
foo = newFoo;
}
}
I would recommend protected get methods be used as well to remain orthogonal. Does anybody have any thoughts?
Hi Sheldon,
Have you checked out the class net.sf.beanlibProtectedReaderMethodFinder ?
You can use the singleton instance of this class to achieve what you need, by plugging it into either BeanPopulator or HibernateBeanReplicator, depending on what you are trying to do.
typo: net.sf.beanlib.ProtectedReaderMethodFinder