public Mapping < T > addFields ( ) { if ( idColumn == null ) { throw new RuntimeException ( "Map ID column before adding class fields" ) ; } for ( Field f : ReflectionUtils . getDeclaredFieldsInHierarchy ( clazz ) ) { if ( ! Modifier . isStatic ( f . getModifiers ( ) ) && ! isFieldMapped ( f . getName ( ) ) && ! ignoredFields . contains ( f . getName ( ) ) ) { addColumn ( f . getName ( ) ) ; } } return this ; }
Adds mappings for each declared field in the mapped class . Any fields already mapped by addColumn are skipped .