HHH-6773 test fails on sybase

This commit is contained in:
Strong Liu 2011-10-26 18:40:44 +08:00
parent 7b9e2130b2
commit f262811c8f
2 changed files with 5 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.MappedSuperclass;
import javax.persistence.Table;
@ -117,6 +118,7 @@ public class ComplexJoinAliasTest extends BaseCoreFunctionalTestCase {
Code roleCode;
@ManyToOne(targetEntity = Role.class)
@JoinColumn(nullable = false)
Role role;
@Override

View File

@ -30,8 +30,10 @@ import org.hibernate.ScrollMode;
import org.hibernate.ScrollableResults;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.dialect.SybaseASE15Dialect;
import org.hibernate.testing.DialectChecks;
import org.hibernate.testing.RequiresDialectFeature;
import org.hibernate.testing.SkipForDialect;
import org.hibernate.testing.junit4.BaseCoreFunctionalTestCase;
import static org.junit.Assert.assertEquals;
@ -69,6 +71,7 @@ public class ScrollableCollectionFetchingTest extends BaseCoreFunctionalTestCase
}
@Test
@SkipForDialect( value = SybaseASE15Dialect.class, jiraKey = "HHH-5229")
public void testScrollingJoinFetchesEmptyResultSet() {
Session s = openSession();
Transaction txn = s.beginTransaction();