Package org.hibernate.cfg.reveng

Examples of org.hibernate.cfg.reveng.TableFilter.exclude()


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


  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.*");
 
View Full Code Here

    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.*");
 
View Full Code Here

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

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

    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

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

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

    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() );
  }
 
  public void testColumnExclude() {
   
    OverrideRepository or = buildOverrideRepository();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.