public String [ ] getPlainProperties ( ) { String [ ] commonColumns = { "created" , "createdby" , "updated" , "updatedby" , "isactive" } ; String [ ] referencedProperties = getReferencedColumns ( ) ; List < String > plainProperties = new ArrayList < String > ( ) ; for ( String att : attributes ) { if ( CStringUtils . indexOf ( referencedProperties , att ) >= 0 ) { //do not include referenced columns } else if ( att . endsWith ( "_id" ) ) { ; //do not include implied columns } else if ( CStringUtils . indexOf ( commonColumns , att ) >= 0 ) { ; //do not include common columns } else { plainProperties . add ( att ) ; } } return plainProperties . toArray ( new String [ plainProperties . size ( ) ] ) ; }
Get the properties that are pertaining to the model this does not include linker columns