assertEquals(null,res.columnToHibernateTypeName(null,null, Types.LONGVARCHAR, 1, SQLTypeMapping.UNKNOWN_PRECISION, SQLTypeMapping.UNKNOWN_SCALE, false, false) );
assertEquals("yes_no",res.columnToHibernateTypeName(null,null, Types.BIT, SQLTypeMapping.UNKNOWN_LENGTH, SQLTypeMapping.UNKNOWN_PRECISION, SQLTypeMapping.UNKNOWN_SCALE, false, false) );
}
public void testTableExclude() {
TableFilter tf = new TableFilter();
tf.setMatchName("max");
tf.setExclude(Boolean.TRUE);
assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
assertNull(tf.exclude(new TableIdentifier("maxnotexact") ) );
tf.setMatchName(".*max");
assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
assertNull(tf.exclude(new TableIdentifier("maxnotending") ) );
assertTrue(tf.exclude(new TableIdentifier("endingWithmax") ).booleanValue() );
tf.setMatchName("max.*");
assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
tf.setMatchName(".*max.*");
assertTrue(tf.exclude(new TableIdentifier("max") ).booleanValue() );
assertNull(tf.exclude(new TableIdentifier("notxam") ) );
assertTrue(tf.exclude(new TableIdentifier("heremaxsub") ).booleanValue() );
}