Initial implementation of RestHttpPage class
This commit is contained in:
parent
6e271f56d9
commit
a7e6324a10
11 changed files with 81 additions and 35 deletions
|
|
@ -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!");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue