34 lines
899 B
Plaintext
34 lines
899 B
Plaintext
|
/**
|
||
|
* Auto-generated from apibuilder.io service specification.
|
||
|
* apidoc-version : {{service.apidoc.version}}
|
||
|
* organisation : {{service.organization.key}}
|
||
|
* service-version : {{service.version}}
|
||
|
*
|
||
|
* Documentation at:
|
||
|
* <a href="https://app.apibuilder.io/{{service.organization.key}}/{{service.name}}/{{service.version}}">https://app.apibuilder.io/{{service.organization.key}}/{{service.name}}/{{service.version}}</a>
|
||
|
*
|
||
|
**/
|
||
|
package {{package}};
|
||
|
|
||
|
{{#imports}}
|
||
|
import {{{.}}};
|
||
|
{{/imports}}
|
||
|
|
||
|
import org.axonframework.modelling.command.TargetAggregateIdentifier;
|
||
|
import lombok.*;
|
||
|
|
||
|
@Data
|
||
|
@NoArgsConstructor
|
||
|
@AllArgsConstructor
|
||
|
public class {{name}} {
|
||
|
|
||
|
@TargetAggregateIdentifier
|
||
|
private {{id.type.name}} id;
|
||
|
|
||
|
{{#fields}}
|
||
|
@JsonProperty("{{name}}")
|
||
|
{{#required}}@NonNull{{/required}}
|
||
|
private {{{type.name}}} {{name}};
|
||
|
{{/fields}}
|
||
|
|
||
|
}
|