Package org.hibernate.validator.event

Examples of org.hibernate.validator.event.ValidateEventListener


    assertEquals( stateColumn.getScale(), 1 );
  }

  protected void configure(Configuration cfg) {
    cfg.getEventListeners()
        .setPreInsertEventListeners( new PreInsertEventListener[]{new ValidateEventListener()} );
    cfg.getEventListeners()
        .setPreUpdateEventListeners( new PreUpdateEventListener[]{new ValidateEventListener()} );
  }
View Full Code Here


  private Ejb3Configuration configuration;
  private boolean isSecurity;

  public EventListenerConfigurator(Ejb3Configuration configuration) {
    this.configuration = configuration;
    ValidateEventListener validateEventListener = new ValidateEventListener();
    EventListeners listenerConfig = configuration.getEventListeners();

    //Action event
    //EJB3-specific ops listeners
    listenerConfig.setFlushEventListeners( new FlushEventListener[]{EJB3FlushEventListener.INSTANCE} );
View Full Code Here

    assertEquals( stateColumn.getScale(), 1 );
  }

  protected void configure(Configuration cfg) {
    cfg.getEventListeners()
        .setPreInsertEventListeners( new PreInsertEventListener[]{new ValidateEventListener()} );
    cfg.getEventListeners()
        .setPreUpdateEventListeners( new PreUpdateEventListener[]{new ValidateEventListener()} );
  }
View Full Code Here

TOP

Related Classes of org.hibernate.validator.event.ValidateEventListener

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.