HHH-13011 Fix the tests: use a boolean query

This commit is contained in:
Guillaume Smet 2018-10-16 18:24:29 +02:00
parent 4d38494d38
commit b964aae339
11 changed files with 11 additions and 11 deletions

View File

@ -131,7 +131,7 @@ public class EagerManyToOneFetchModeJoinWhereTest extends BaseNonConfigCoreFunct
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
@GeneratedValue @GeneratedValue

View File

@ -199,7 +199,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -194,7 +194,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase {
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -199,7 +199,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -199,7 +199,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -193,7 +193,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase {
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -199,7 +199,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona
@Entity(name = "Category") @Entity(name = "Category")
@Table(name = "CATEGORY") @Table(name = "CATEGORY")
@Where(clause = "inactive = 0") @Where(clause = "not inactive")
public static class Category { public static class Category {
@Id @Id
private int id; private int id;

View File

@ -28,7 +28,7 @@
</class> </class>
<class name="EagerManyToOneFetchModeJoinWhereTest$Category" table="CATEGORY" where="inactive = 0"> <class name="EagerManyToOneFetchModeJoinWhereTest$Category" table="CATEGORY" where="not inactive">
<id name="id" column="ID"> <id name="id" column="ID">
<generator class="increment" /> <generator class="increment" />
</id> </id>

View File

@ -28,7 +28,7 @@
</class> </class>
<class name="EagerManyToOneFetchModeSelectWhereTest$Category" table="CATEGORY" where="inactive = 0"> <class name="EagerManyToOneFetchModeSelectWhereTest$Category" table="CATEGORY" where="not inactive">
<id name="id" column="ID"> <id name="id" column="ID">
<generator class="increment" /> <generator class="increment" />
</id> </id>

View File

@ -39,7 +39,7 @@
</class> </class>
<class name="Category" table="CATEGORY" where="inactive = 0"> <class name="Category" table="CATEGORY" where="not inactive">
<id name="id" column="ID"/> <id name="id" column="ID"/>
<property name="name"/> <property name="name"/>

View File

@ -39,7 +39,7 @@
</class> </class>
<class name="Category" table="CATEGORY" where="inactive = 0"> <class name="Category" table="CATEGORY" where="not inactive">
<id name="id" column="ID"/> <id name="id" column="ID"/>
<property name="name"/> <property name="name"/>