HHH-13011 Fix the tests: use a boolean query
(cherry picked from commit 18f4ecfdfe
)
This commit is contained in:
parent
c4e9be53af
commit
d41c657e43
|
@ -200,7 +200,7 @@ public class EagerToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunc
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -205,7 +205,7 @@ public class EagerToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase {
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -204,7 +204,7 @@ public class EagerToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunction
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -200,7 +200,7 @@ public class LazyToManyWhereDontUseClassWhereTest extends BaseNonConfigCoreFunct
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -204,7 +204,7 @@ public class LazyToManyWhereTest extends BaseNonConfigCoreFunctionalTestCase {
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -204,7 +204,7 @@ public class LazyToManyWhereUseClassWhereTest extends BaseNonConfigCoreFunctiona
|
|||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
</class>
|
||||
|
||||
<class name="Category" table="CATEGORY" where="inactive = 0">
|
||||
<class name="Category" table="CATEGORY" where="not inactive">
|
||||
<id name="id" column="ID"/>
|
||||
|
||||
<property name="name"/>
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
</class>
|
||||
|
||||
<class name="Category" table="CATEGORY" where="inactive = 0">
|
||||
<class name="Category" table="CATEGORY" where="not inactive">
|
||||
<id name="id" column="ID"/>
|
||||
|
||||
<property name="name"/>
|
||||
|
|
Loading…
Reference in New Issue