Skip to content

Commit 333e404

Browse files
committed
HHH-9970 : Remove NoIdentityHQLScrollFetchTest and change HQLScrollFetchTest to work with "increment" ID generator
1 parent 8b7d58d commit 333e404

File tree

4 files changed

+2
-71
lines changed

4 files changed

+2
-71
lines changed

hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/HQLScrollFetchTest.java

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,7 @@
1010
import org.hibernate.ScrollableResults;
1111
import org.hibernate.Session;
1212
import org.hibernate.Transaction;
13-
import org.hibernate.dialect.AbstractHANADialect;
14-
import org.hibernate.dialect.DB2Dialect;
15-
import org.hibernate.dialect.H2Dialect;
16-
import org.hibernate.dialect.Oracle8iDialect;
17-
import org.hibernate.dialect.SQLServerDialect;
18-
import org.hibernate.dialect.TeradataDialect;
1913
import org.hibernate.engine.spi.SessionImplementor;
20-
import org.hibernate.testing.SkipForDialect;
2114
import org.hibernate.testing.TestForIssue;
2215
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
2316
import org.hibernate.transform.DistinctRootEntityResultTransformer;
@@ -36,8 +29,6 @@
3629
import static org.junit.Assert.assertTrue;
3730
import static org.junit.Assert.fail;
3831

39-
@SkipForDialect( value = { Oracle8iDialect.class, AbstractHANADialect.class },
40-
comment = "Oracle/HANA do not support the identity column used in the mapping. Extended by NoIdentityHQLScrollFetchTest" )
4132
public class HQLScrollFetchTest extends BaseCoreFunctionalTestCase {
4233
private static final String QUERY = "select p from Parent p join fetch p.children c";
4334

@@ -52,8 +43,6 @@ public void testNoScroll() {
5243
}
5344

5445
@Test
55-
@SkipForDialect( { SQLServerDialect.class, Oracle8iDialect.class, DB2Dialect.class,
56-
AbstractHANADialect.class, TeradataDialect.class } )
5746
public void testScroll() {
5847
Session s = openSession();
5948
s.beginTransaction();

hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/NoIdentityHQLScrollFetchTest.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/NoIdentityParentChild.hbm.xml

Lines changed: 0 additions & 37 deletions
This file was deleted.

hibernate-core/src/test/java/org/hibernate/test/hqlfetchscroll/ParentChild.hbm.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<!-- A numeric id must be the <id> field. Some databases (Sybase, etc.)
1616
require identifier columns in order to support scrollable results. -->
1717
<id name="id">
18-
<generator class="identity"/>
18+
<generator class="increment"/>
1919
</id>
2020

2121
<property name="name"/>
@@ -31,7 +31,7 @@
3131
<!-- A numeric id must be the <id> field. Some databases (Sybase, etc.)
3232
require identifier columns in order to support scrollable results. -->
3333
<id name="id">
34-
<generator class="identity"/>
34+
<generator class="increment"/>
3535
</id>
3636

3737
<property name="name"/>

0 commit comments

Comments
 (0)