Skip to content

Instantly share code, notes, and snippets.

@mormolis
Created April 25, 2020 21:54
Show Gist options
  • Save mormolis/ee2ecd592a5e9f87bcb45cdf30257e42 to your computer and use it in GitHub Desktop.
Save mormolis/ee2ecd592a5e9f87bcb45cdf30257e42 to your computer and use it in GitHub Desktop.
package com.multipartyloops.thymeleaf.entities;
import com.multipartyloops.thymeleaf.entities.model.converters.ModelElement;
import java.util.Objects;
public class Person {
@ModelElement(key = "name")
private String name;
@ModelElement(key = "sex")
private Sex sex;
@ModelElement(key = "age")
private int age;
public Person(String name, Sex sex, int age) {
this.name = name;
this.sex = sex;
this.age = age;
}
//Getters and Setters
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment