@Test public void update() { Person built = Person.getBuilder(FIRST_NAME, LAST_NAME).build(); built.update(FIRST_NAME_UPDATED, LAST_NAME_UPDATED); assertEquals(FIRST_NAME_UPDATED, built.getFirstName()); assertEquals(LAST_NAME_UPDATED, built.getLastName()); }
public void update(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; }
Person { public void update(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; } }
Person { public void update(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; }  }
Person { public void update(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; }  Long getId(); static Builder getBuilder(String firstName, String lastName); Date getCreationTime(); String getFirstName(); String getLastName(); @Transient String getName(); Date getModificationTime(); long getVersion(); void update(String firstName, String lastName); @PreUpdate void preUpdate(); @PrePersist void prePersist(); @Override String toString(); void setId(Long id); }
Person { public void update(String firstName, String lastName) { this.firstName = firstName; this.lastName = lastName; }  Long getId(); static Builder getBuilder(String firstName, String lastName); Date getCreationTime(); String getFirstName(); String getLastName(); @Transient String getName(); Date getModificationTime(); long getVersion(); void update(String firstName, String lastName); @PreUpdate void preUpdate(); @PrePersist void prePersist(); @Override String toString(); void setId(Long id);  }