From 625784694399e1fa048bf932d2bc6b0611a2d1db Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Tue, 16 Oct 2018 14:17:04 -0700 Subject: [PATCH] HHH-13011 Fix the tests: use int column in where clause --- .../EagerManyToOneFetchModeJoinWhereTest.java | 6 +++--- .../EagerManyToOneFetchModeSelectWhereTest.java | 6 +++--- .../EagerToManyWhereDontUseClassWhereTest.java | 8 ++++---- .../test/where/annotations/EagerToManyWhereTest.java | 9 ++++----- .../annotations/EagerToManyWhereUseClassWhereTest.java | 8 ++++---- .../LazyToManyWhereDontUseClassWhereTest.java | 8 ++++---- .../test/where/annotations/LazyToManyWhereTest.java | 8 ++++---- .../annotations/LazyToManyWhereUseClassWhereTest.java | 8 ++++---- .../test/java/org/hibernate/test/where/hbm/Category.java | 6 +++--- .../hbm/EagerManyToOneFetchModeJoinWhereTest.hbm.xml | 2 +- .../where/hbm/EagerManyToOneFetchModeJoinWhereTest.java | 8 ++++---- .../hbm/EagerManyToOneFetchModeSelectWhereTest.hbm.xml | 2 +- .../hbm/EagerManyToOneFetchModeSelectWhereTest.java | 8 ++++---- .../hibernate/test/where/hbm/EagerToManyWhere.hbm.xml | 2 +- .../where/hbm/EagerToManyWhereDontUseClassWhereTest.java | 2 +- .../hibernate/test/where/hbm/EagerToManyWhereTest.java | 2 +- .../where/hbm/EagerToManyWhereUseClassWhereTest.java | 2 +- .../org/hibernate/test/where/hbm/LazyToManyWhere.hbm.xml | 2 +- .../where/hbm/LazyToManyWhereDontUseClassWhereTest.java | 2 +- .../hibernate/test/where/hbm/LazyToManyWhereTest.java | 2 +- .../test/where/hbm/LazyToManyWhereUseClassWhereTest.java | 2 +- 21 files changed, 51 insertions(+), 52 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeJoinWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeJoinWhereTest.java index 170ba0ef77..d076a4d3ba 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeJoinWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeJoinWhereTest.java @@ -83,7 +83,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct session -> { Category c = session.get( Category.class, category.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -131,7 +131,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id @GeneratedValue @@ -139,7 +139,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct private String name; - private boolean inactive; + private int inactive; } @Embeddable diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeSelectWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeSelectWhereTest.java index 5611051661..0791c761f6 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeSelectWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerManyToOneFetchModeSelectWhereTest.java @@ -82,7 +82,7 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun session -> { Category c = session.get( Category.class, category.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -130,7 +130,7 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id @GeneratedValue @@ -138,7 +138,7 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun private String name; - private boolean inactive; + private int inactive; } @Embeddable diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereDontUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereDontUseClassWhereTest.java index 99cb3567ba..e03a34c6dd 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereDontUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereDontUseClassWhereTest.java @@ -127,7 +127,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -186,7 +186,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.EAGER) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -199,7 +199,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -208,6 +208,6 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereTest.java index ec22446139..9417345891 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereTest.java @@ -24,7 +24,6 @@ import org.hibernate.annotations.WhereJoinTable; import org.hibernate.testing.TestForIssue; import org.hibernate.testing.junit4.BaseNonConfigCoreFunctionalTestCase; -import org.junit.After; import org.junit.Test; import static org.hibernate.testing.transaction.TransactionUtil.doInHibernate; @@ -122,7 +121,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -181,7 +180,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.EAGER) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -194,7 +193,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -203,6 +202,6 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereUseClassWhereTest.java index 18738095ea..f7d4462b64 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/EagerToManyWhereUseClassWhereTest.java @@ -127,7 +127,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -186,7 +186,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.EAGER) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -199,7 +199,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -208,6 +208,6 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereDontUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereDontUseClassWhereTest.java index 641cde432b..3856ad0710 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereDontUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereDontUseClassWhereTest.java @@ -127,7 +127,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -186,7 +186,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.LAZY) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -199,7 +199,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -208,6 +208,6 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereTest.java index eaf0b78231..e2ceeddf20 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereTest.java @@ -121,7 +121,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -180,7 +180,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.LAZY) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -193,7 +193,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -202,6 +202,6 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereUseClassWhereTest.java index 4326498ea5..2e12f923b4 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/annotations/LazyToManyWhereUseClassWhereTest.java @@ -127,7 +127,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona session -> { Category c = session.get( Category.class, flowers.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -186,7 +186,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona private Set categoriesManyToMany = new HashSet<>(); @ManyToMany(fetch = FetchType.LAZY) - @JoinTable(name = "categoriesWithDescManyToMany") + @JoinTable(name = "categoriesWithDescManyToMany", inverseJoinColumns = { @JoinColumn( name = "categoryId" )}) @Where( clause = "description is not null" ) private Set categoriesWithDescManyToMany = new HashSet<>(); @@ -199,7 +199,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona @Entity(name = "Category") @Table(name = "CATEGORY") - @Where(clause = "not inactive") + @Where(clause = "inactive = 0") public static class Category { @Id private int id; @@ -208,6 +208,6 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona private String description; - private boolean inactive; + private int inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/Category.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/Category.java index f35ce91ba3..ce08839981 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/Category.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/Category.java @@ -13,7 +13,7 @@ public class Category { private String description; - private boolean inactive; + private int inactive; public int getId() { return id; @@ -39,11 +39,11 @@ public class Category { this.description = description; } - public boolean isInactive() { + public int getInactive() { return inactive; } - public void setInactive(boolean inactive) { + public void setInactive(int inactive) { this.inactive = inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.hbm.xml b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.hbm.xml index 46c7ccfe9e..7cd816215c 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.hbm.xml +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.hbm.xml @@ -28,7 +28,7 @@ - + diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.java index 4412613aa6..ef96d0cc5b 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeJoinWhereTest.java @@ -66,7 +66,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct session -> { Category c = session.get( Category.class, category.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -141,7 +141,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct private String name; - private boolean inactive; + private int inactive; public int getId() { return id; @@ -159,11 +159,11 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct this.name = name; } - public boolean isInactive() { + public int getInactive() { return inactive; } - public void setInactive(boolean inactive) { + public void setInactive(int inactive) { this.inactive = inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.hbm.xml b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.hbm.xml index af77975d6a..662d16697d 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.hbm.xml +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.hbm.xml @@ -28,7 +28,7 @@ - + diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.java index d2dd8a819b..12b165b5ff 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerManyToOneFetchModeSelectWhereTest.java @@ -64,7 +64,7 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun session -> { Category c = session.get( Category.class, category.id ); assertNotNull( c ); - c.inactive = true; + c.inactive = 1; } ); @@ -139,7 +139,7 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun private String name; - private boolean inactive; + private int inactive; public int getId() { return id; @@ -157,11 +157,11 @@ public class EagerManyToOneFetchModeSelectWhereTest extends BaseNonConfigCoreFun this.name = name; } - public boolean isInactive() { + public int getInactive() { return inactive; } - public void setInactive(boolean inactive) { + public void setInactive(int inactive) { this.inactive = inactive; } } diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhere.hbm.xml b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhere.hbm.xml index d8bc42a645..2e2455d078 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhere.hbm.xml +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhere.hbm.xml @@ -39,7 +39,7 @@ - + diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereDontUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereDontUseClassWhereTest.java index f93c533416..af9db17de6 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereDontUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereDontUseClassWhereTest.java @@ -116,7 +116,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereTest.java index 0533202346..a2a9884747 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereTest.java @@ -109,7 +109,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereUseClassWhereTest.java index cabcb22ba2..29001f05ab 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/EagerToManyWhereUseClassWhereTest.java @@ -116,7 +116,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhere.hbm.xml b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhere.hbm.xml index 4c65649a72..a76c02c34c 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhere.hbm.xml +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhere.hbm.xml @@ -39,7 +39,7 @@ - + diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereDontUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereDontUseClassWhereTest.java index 86ca4ff631..570308a7ae 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereDontUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereDontUseClassWhereTest.java @@ -116,7 +116,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereTest.java index 2b25200f1f..f85ce62290 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereTest.java @@ -109,7 +109,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase { session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } ); diff --git a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereUseClassWhereTest.java b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereUseClassWhereTest.java index 3984200cbf..dc02774160 100644 --- a/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereUseClassWhereTest.java +++ b/hibernate-core/src/test/java/org/hibernate/test/where/hbm/LazyToManyWhereUseClassWhereTest.java @@ -116,7 +116,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona session -> { Category c = session.get( Category.class, flowers.getId() ); assertNotNull( c ); - c.setInactive( true ); + c.setInactive( 1 ); } );