Skip to content

Commit

Permalink
Initial problem
Browse files Browse the repository at this point in the history
  • Loading branch information
a-d committed Jan 10, 2025
1 parent cb7a250 commit 7bd61ed
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

package com.sap.cloud.sdk.datamodel.openapi.sample.model;

import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import java.util.NoSuchElementException;
Expand All @@ -34,7 +35,7 @@
* Order
*/
// CHECKSTYLE:OFF
public class Order
public class Order extends HashMap<String, Object>

This comment has been minimized.

Copy link
@newtork

newtork Jan 10, 2025

Contributor
[WARNING] COMPILATION WARNING : 
[INFO] -------------------------------------------------------------
[WARNING] /C:/SAPDevelop/cloud-sdk-java/datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/Order.java:[38,8] serializable class com.sap.cloud.sdk.datamodel.openapi.sample.model.Order has no definition of serialVersionUID
[WARNING] /C:/SAPDevelop/cloud-sdk-java/datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/Order.java:[51,20] non-transient instance field of a serializable class declared with a non-serializable type
/C:/SAPDevelop/cloud-sdk-java/datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/Order.java:[51,20] non-transient instance field of a serializable class declared with a non-serializable type
/C:/SAPDevelop/cloud-sdk-java/datamodel/openapi/openapi-api-sample/src/main/java/com/sap/cloud/sdk/datamodel/openapi/sample/model/Order.java:[58,39] non-transient instance field of a serializable class declared with a non-serializable type

// CHECKSTYLE:ON
{
@JsonProperty( "productId" )
Expand All @@ -61,6 +62,7 @@ public class Order
*/
protected Order()
{
super();
}

/**
Expand Down Expand Up @@ -304,13 +306,22 @@ public boolean equals( @Nullable final java.lang.Object o )
&& Objects.equals(this.quantity, order.quantity)
&& Objects.equals(this.totalPrice, order.totalPrice)
&& Objects.equals(this.typelessProperty, order.typelessProperty)
&& Objects.equals(this.nullableProperty, order.nullableProperty);
&& Objects.equals(this.nullableProperty, order.nullableProperty)
&& super.equals(o);
}

@Override
public int hashCode()
{
return Objects.hash(productId, quantity, totalPrice, typelessProperty, nullableProperty, cloudSdkCustomFields);
return Objects
.hash(
productId,
quantity,
totalPrice,
typelessProperty,
nullableProperty,
cloudSdkCustomFields,
super.hashCode());
}

@Override
Expand All @@ -319,6 +330,7 @@ public String toString()
{
final StringBuilder sb = new StringBuilder();
sb.append("class Order {\n");
sb.append(" ").append(toIndentedString(super.toString())).append("\n");
sb.append(" productId: ").append(toIndentedString(productId)).append("\n");
sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n");
sb.append(" totalPrice: ").append(toIndentedString(totalPrice)).append("\n");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ components:
example: 123
Order:
type: object
additionalProperties: true
required:
- productId
- quantity
Expand Down

0 comments on commit 7bd61ed

Please sign in to comment.