-
-
Save mormolis/ee2ecd592a5e9f87bcb45cdf30257e42 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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