diff --git a/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute b/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute index 4110882bc..bcdfa1b68 100644 --- a/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute +++ b/client/deployment/src/main/resources/templates/libraries/microprofile/pojo.qute @@ -158,6 +158,7 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl return java.util.Objects.equals({m.vars.0.name}, model.{m.vars.0.name}); {#else} {#for v in m.vars} + {#if !v.deprecated || openapi:genDeprecatedModelAttr(package, m.classname, codegen)} {#if v_isFirst} return java.util.Objects.equals({v.name}, model.{v.name}) && {#else if v_isLast} @@ -165,6 +166,7 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl {#else} java.util.Objects.equals({v.name}, model.{v.name}) && {/if} + {/if} {/for} {/if} } @@ -180,6 +182,7 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl return java.util.Objects.hash({m.vars.0.name}); {#else} {#for v in m.vars} + {#if !v.deprecated || openapi:genDeprecatedModelAttr(package, m.classname, codegen)} {#if v_isFirst} return java.util.Objects.hash({v.name}, {#else if v_isLast} @@ -187,6 +190,7 @@ public class {m.classname} {#if m.parent}extends {m.parent}{/if}{#if serializabl {#else} {v.name}, {/if} + {/if} {/for} {/if} }