1 package org.springframework.samples.petclinic;
2
3 /**
4 * Simple JavaBean domain object adds a name property to <code>BaseEntity</code>.
5 * Used as a base class for objects needing these properties.
6 *
7 * @author Ken Krebs
8 * @author Juergen Hoeller
9 */
10 public class NamedEntity extends BaseEntity {
11
12 private String name;
13
14
15 public void setName(String name) {
16 this.name = name;
17 }
18
19 public String getName() {
20 return this.name;
21 }
22
23 @Override
24 public String toString() {
25 return this.getName();
26 }
27
28 }