Initial implementation of RestHttpPage class

This commit is contained in:
Ziver Koc 2014-10-07 15:26:51 +00:00
parent 6e271f56d9
commit a7e6324a10
11 changed files with 81 additions and 35 deletions

View file

@ -456,12 +456,13 @@ public abstract class DBBean {
* This is a workaround if the field is not visible to other classes
*
* @param field is the field
* @return the value of the field
*/
protected void setFieldValue(Field field, Object o){
try {
if( !Modifier.isPublic( field.getModifiers()))
field.setAccessible(true);
// Set basic datatype
if( o == null && !Object.class.isAssignableFrom( field.getType() ) ){
logger.fine("Trying to set primitive data type to null!");