public boolean hasIdentityColumn ( DbEntity entity ) { for ( final DbColumn column : entity . getColumns ( ) ) { if ( column . isAutoInc ( ) ) { return true ; } } return false ; }
Check if the entity has an identity column .