From 1ca73ca6aa7cb7be1215eff46a51b558c4112ad2 Mon Sep 17 00:00:00 2001 From: Rob Bygrave Date: Thu, 10 Aug 2023 23:17:47 +1200 Subject: [PATCH] Test only - Update test IdClass CEPProductCategoryId to match expectations --- .../embeddedid/CEPProductCategoryId.java | 26 +++++++++---------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/ebean-test/src/test/java/org/tests/cache/embeddedid/CEPProductCategoryId.java b/ebean-test/src/test/java/org/tests/cache/embeddedid/CEPProductCategoryId.java index 6c1ddc5c69..0cd33f4a41 100644 --- a/ebean-test/src/test/java/org/tests/cache/embeddedid/CEPProductCategoryId.java +++ b/ebean-test/src/test/java/org/tests/cache/embeddedid/CEPProductCategoryId.java @@ -7,23 +7,23 @@ public class CEPProductCategoryId { // primitive id values as part of an EmbeddedId (NPE #1722) - private long customerId; - private long addressId; + private long categoryId; + private long productId; - public long getCustomerId() { - return customerId; + public long getCategoryId() { + return categoryId; } - public void setCustomerId(long customerId) { - this.customerId = customerId; + public void setCategoryId(long categoryId) { + this.categoryId = categoryId; } - public long getAddressId() { - return addressId; + public long getProductId() { + return productId; } - public void setAddressId(long addressId) { - this.addressId = addressId; + public void setProductId(long productId) { + this.productId = productId; } @Override @@ -31,12 +31,12 @@ public boolean equals(Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; CEPProductCategoryId that = (CEPProductCategoryId) o; - return customerId == that.customerId && - addressId == that.addressId; + return categoryId == that.categoryId && + productId == that.productId; } @Override public int hashCode() { - return Objects.hash(customerId, addressId); + return Objects.hash(categoryId, productId); } }