1 | public class TriggerGeneratedValuesWithCachingTest extends AbstractGeneratedPropertyTest {↵ | | 1 | public class DB2CustomSQLTest extends CustomStoredProcTestSupport {↵
|
| | | 2 | ↵
|
2 | public TriggerGeneratedValuesWithCachingTest(String x) {↵ | | 3 | public DB2CustomSQLTest(String str) {↵
|
3 | super( x );↵ | | 4 | super(str);↵
|
4 | }↵ | | 5 | }↵
|
|
5 | public final String[] getMappings() {↵ | | 6 | public String[] getMappings() {↵
|
6 | return new String[] { "generated/GeneratedPropertyEntity.hbm.xml" };↵ | | 7 | return new String[] { "↵
|
7 | }↵ | | |
|
|
8 | public boolean appliesTo(Dialect dialect) {↵ | | |
|
9 | // currently have only defined triggers for oracle...↵ | | |
|
10 | // TODO : add more triggers for dialects which allow mods in triggers...↵ | | |
|
11 | return ( dialect instanceof Oracle9iDialect );↵ | | |
|
12 | }↵ | | |
|
|
13 | public static Test suite(↵ | | 8 | sql/hand/custom/db2/Mappings.hbm.xml" };↵
|
| | | 9 | }↵
|
|
| | | 10 | public static Test suite() {↵
|
| | | 11 | return new FunctionalTestClassTestSuite( DB2CustomSQLTest.class );↵
|
| | | 12 | }↵
|
|
14 | ) {↵ | | 13 | public boolean appliesTo(Dialect dialect) {↵
|
15 | return new FunctionalTestClassTestSuite( TriggerGeneratedValuesWithCachingTest.class ) | | 14 | return ( dialect instanceof DB2Dialect)
|