templates.pojo.hbs Maven / Gradle / Ivy
{{~#if hasPackageName}}
package {{{packageName}}};
{{/if}}
{{~#if hasDateType}}
import java.util.Date;
{{~/if}}
public class {{{className}}} {
{{~#each propertyList}}
private {{{javaType}}} {{{name}}};
{{~/each}}
public static {{{className}}} of() {
return new {{{className}}}();
}
{{~#each propertyList}}
public {{{../className}}} {{{setMethodName}}}({{{javaType}}} {{{name}}}) {
this.{{{name}}} = {{{name}}};
return this;
}
public {{{javaType}}} {{{getMethodName}}}() {
return this.{{{name}}};
}
{{~/each}}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy