From ccb5b8613832d5aa9610d1088b1d39d80a707325 Mon Sep 17 00:00:00 2001 From: Andrea Boriero Date: Fri, 29 Mar 2024 10:41:17 +0100 Subject: [PATCH] HHH-17460 - Ongoing JPA 32 work --- .../manytoonewithformula/ManyToOneWithFormulaTest.java | 2 +- .../orm/test/annotations/manytoonewithformula/Menu.java | 6 +++--- .../orm/test/annotations/manytoonewithformula/Person.java | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java index 90d3c17f380b..2870f9cae530 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/ManyToOneWithFormulaTest.java @@ -33,7 +33,7 @@ public void testManyToOneFromNonPk(SessionFactoryScope scope) { scope.inTransaction( (session) -> { Menu menu = new Menu(); menu.setOrderNbr( "123" ); - menu.setDefault( "F" ); + menu.setIsDefault( "F" ); session.persist( menu ); FoodItem foodItem = new FoodItem(); foodItem.setItem( "Mouse" ); diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Menu.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Menu.java index 28c19e85fa3a..04b3219a8eca 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Menu.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Menu.java @@ -33,12 +33,12 @@ public void setId(Integer id) { this.id = id; } - @Column(name="is_default") - public String isDefault() { + @Column(name="is_default") + public String getIsDefault() { return isDefault; } - public void setDefault(String isDefault) { + public void setIsDefault(String isDefault) { this.isDefault = isDefault; } diff --git a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Person.java b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Person.java index 51f81b80ba8e..0e91255c28ee 100644 --- a/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Person.java +++ b/hibernate-core/src/test/java/org/hibernate/orm/test/annotations/manytoonewithformula/Person.java @@ -39,9 +39,10 @@ public void setCompanyId(int companyId) { this.companyId = companyId; } @Column(name="is_default") - public String isDefaultFlag() { + public String getDefaultFlag() { return defaultFlag; } + public void setDefaultFlag(String defaultFlag) { this.defaultFlag = defaultFlag; }