Package org.hibernate.test.generated

Source Code of org.hibernate.test.generated.TriggerGeneratedValuesWithoutCachingTest

// $Id: TriggerGeneratedValuesWithoutCachingTest.java 10977 2006-12-12 23:28:04Z steve.ebersole@jboss.com $
package org.hibernate.test.generated;

import junit.framework.Test;

import org.hibernate.dialect.Dialect;
import org.hibernate.dialect.Oracle9iDialect;
import org.hibernate.testing.junit.functional.FunctionalTestClassTestSuite;

/**
* Implementation of TriggerGeneratedValuesWithoutCachingTest.
*
* @author Steve Ebersole
*/
public class TriggerGeneratedValuesWithoutCachingTest extends AbstractGeneratedPropertyTest {

  public TriggerGeneratedValuesWithoutCachingTest(String x) {
    super( x );
  }

  public final String[] getMappings() {
    return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" };
  }

  public boolean appliesTo(Dialect dialect) {
    // currently have only defined triggers for oracle...
    // TODO : add more triggers for dialects which allow mods in triggers...
    return ( dialect instanceof Oracle9iDialect );
  }

  public String getCacheConcurrencyStrategy() {
    return null;
  }

  public static Test suite() {
    return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithoutCachingTest.class );
  }
}
TOP

Related Classes of org.hibernate.test.generated.TriggerGeneratedValuesWithoutCachingTest

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.