mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-03-03 00:09:19 +00:00
HHH-13011 Fix the tests: use a boolean query
This commit is contained in:
parent
17804ce4e7
commit
18f4ecfdfe
@ -131,7 +131,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
@GeneratedValue
|
||||
|
@ -199,7 +199,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -194,7 +194,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -199,7 +199,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -199,7 +199,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -193,7 +193,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -199,7 +199,7 @@ public static class Product {
|
||||
|
||||
@Entity(name = "Category")
|
||||
@Table(name = "CATEGORY")
|
||||
@Where(clause = "inactive = 0")
|
||||
@Where(clause = "not inactive")
|
||||
public static class Category {
|
||||
@Id
|
||||
private int id;
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
</class>
|
||||
|
||||
<class name="EagerManyToOneFetchModeJoinWhereTest$Category" table="CATEGORY" where="inactive = 0">
|
||||
<class name="EagerManyToOneFetchModeJoinWhereTest$Category" table="CATEGORY" where="not inactive">
|
||||
<id name="id" column="ID">
|
||||
<generator class="increment" />
|
||||
</id>
|
||||
|
@ -28,7 +28,7 @@
|
||||
|
||||
</class>
|
||||
|
||||
<class name="EagerManyToOneFetchModeSelectWhereTest$Category" table="CATEGORY" where="inactive = 0">
|
||||
<class name="EagerManyToOneFetchModeSelectWhereTest$Category" table="CATEGORY" where="not inactive">
|
||||
<id name="id" column="ID">
|
||||
<generator class="increment" />
|
||||
</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…
x
Reference in New Issue
Block a user