~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/generated/TriggerGeneratedValuesWithCachingTest.java

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// $Id: TriggerGeneratedValuesWithCachingTest.java 10977 2006-12-12 23:28:04Z steve.ebersole@jboss.com $
2
 
package org.hibernate.test.generated;
3
 
 
4
 
import org.hibernate.dialect.Oracle9iDialect;
5
 
import org.hibernate.dialect.Dialect;
6
 
import org.hibernate.junit.functional.FunctionalTestClassTestSuite;
7
 
 
8
 
import junit.framework.Test;
9
 
 
10
 
/**
11
 
 * Implementation of TriggerGeneratedValuesWithoutCachingTest.
12
 
 *
13
 
 * @author Steve Ebersole
14
 
 */
15
 
public class TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {
16
 
 
17
 
        public TriggerGeneratedValuesWithCachingTest(String x) {
18
 
                super( x );
19
 
        }
20
 
 
21
 
        public final String[] getMappings() {
22
 
                return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" };
23
 
        }
24
 
 
25
 
        public boolean appliesTo(Dialect dialect) {
26
 
                // currently have only defined triggers for oracle...
27
 
                // TODO : add more triggers for dialects which allow mods in triggers...
28
 
                return ( dialect instanceof Oracle9iDialect );
29
 
        }
30
 
 
31
 
        public static Test suite() {
32
 
                return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithCachingTest.class );
33
 
        }
34
 
}