1 package examples; 2 3 import org.pojomatic.annotations.AutoProperty; 4 import org.pojomatic.annotations.PojomaticPolicy; 5 import org.pojomatic.annotations.Property; 6 7 @AutoProperty 8 public class Employee { 9 private final String firstName; 10 private final String lastName; 11 12 @Property(policy=PojomaticPolicy.EQUALS_TO_STRING) 13 private String securityLevel; 14 15 16 public String getFirstName() { 17 return this.firstName; 18 } 19 20 public String getLastName() { 21 return this.lastName; 22 } 23 24 public String getSecurityLevel() { 25 return this.securityLevel; 26 } 27 28 public void setSecurityLevel(String securityLevel) { 29 this.securityLevel = securityLevel; 30 } 31 32 public Employee(String firstName, String lastName, String securityLevel) { 33 this.firstName = firstName; 34 this.lastName = lastName; 35 this.securityLevel = securityLevel; 36 } 37 38 }