Package org.hibernate.cfg.reveng

Examples of org.hibernate.cfg.reveng.TableFilter$Matcher


    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() );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.cfg.reveng.TableFilter$Matcher

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.