private void buildSimpleEntity ( EntityConfig entityConfig , Entity entity ) { Table table = entity . getTable ( ) ; // 1st phase: process all column and look for corresponding columnConfig for ( Column column : table . getColumns ( ) ) { boolean processed = processColumnUsingColumnConfigIfAny ( entityConfig , entity , column ) ; // no columnConfig, we just use defaults if ( ! processed ) { entity . addAttribute ( attributeFactory . build ( entity , table , column ) ) ; } } // detect invalid column and jpa secondary case processInvalidColumnConfigAndJpaSecondaryTable ( entityConfig , entity ) ; }
Build simple entity using user configuration