KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > springframework > samples > petclinic > NamedEntity


1 package org.springframework.samples.petclinic;
2
3 /**
4  * Simple JavaBean domain object adds a name property to <code>Entity</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 Entity {
11
12     private String JavaDoc name;
13
14     public void setName(String JavaDoc name) {
15         this.name = name;
16     }
17
18     public String JavaDoc getName() {
19         return this.name;
20     }
21
22 }
23
Popular Tags