public static void loadDataObjectConfiguration(List<DataObjectFieldConfiguration> configuration){
  for (  DataObjectFieldConfiguration fieldConfig : configuration) {
    DataObjectType doType=getDoType(fieldConfig.getDoClass());
    ColumnField field=doType.getColumnField(fieldConfig.getFieldName());
    if (field == null) {
      throw new IllegalArgumentException(String.format("Unknown field: %1$s",fieldConfig.getFieldName()));
    }
    field.setTtl(fieldConfig.getTtl());
  }
}

public static void loadDataObjectConfiguration ( List < DataObjectFieldConfiguration > configuration ) { for ( DataObjectFieldConfiguration fieldConfig : configuration ) { DataObjectType doType = getDoType ( fieldConfig . getDoClass ( ) ) ; ColumnField field = doType . getColumnField ( fieldConfig . getFieldName ( ) ) ; if ( field == null ) { throw new IllegalArgumentException ( String . format ( "Unknown field: %1$s" , fieldConfig . getFieldName ( ) ) ) ; } field . setTtl ( fieldConfig . getTtl ( ) ) ; } }
user may optionally override default data object configuration ( like ttl ) by calling this method . note that configuration must be loaded before dbclient is used
