Skip to content

Commit

Permalink
Test only - Update test IdClass CEPProductCategoryId to match expecta…
Browse files Browse the repository at this point in the history
…tions
  • Loading branch information
rbygrave committed Aug 10, 2023
1 parent d5e4c13 commit 1ca73ca
Showing 1 changed file with 13 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,36 +7,36 @@
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
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);
}
}

0 comments on commit 1ca73ca

Please sign in to comment.