From 3dcb00de1546aecce091cad1ac852464647cf1b1 Mon Sep 17 00:00:00 2001 From: mbussolotto Date: Thu, 19 Dec 2024 17:55:53 +0100 Subject: [PATCH] small changes --- java/code/src/com/redhat/rhn/testing/TestUtils.java | 2 +- java/code/src/com/suse/cloud/domain/PaygDimensionResult.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/java/code/src/com/redhat/rhn/testing/TestUtils.java b/java/code/src/com/redhat/rhn/testing/TestUtils.java index 9ed442e690c5..2f3bc3c2e064 100644 --- a/java/code/src/com/redhat/rhn/testing/TestUtils.java +++ b/java/code/src/com/redhat/rhn/testing/TestUtils.java @@ -369,7 +369,7 @@ public static T reload(T obj) throws HibernateException { */ public static void saveAndFlush(Object obj) throws HibernateException { Session session = HibernateFactory.getSession(); - session.save(obj); + session.saveOrUpdate(obj); session.flush(); } diff --git a/java/code/src/com/suse/cloud/domain/PaygDimensionResult.java b/java/code/src/com/suse/cloud/domain/PaygDimensionResult.java index 5393f113bd6b..da7ebe6a594a 100644 --- a/java/code/src/com/suse/cloud/domain/PaygDimensionResult.java +++ b/java/code/src/com/suse/cloud/domain/PaygDimensionResult.java @@ -91,7 +91,7 @@ public Long getComputationId() { } @Column(name = "dimension") - @Type(type = "com.suse.cloud.domain.BillingDimensionEnumType") + @Type(type = "yes_no") public BillingDimension getDimension() { return dimension; }