KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > tutorial > tableperinheritance > bean > Cat


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.tutorial.tableperinheritance.bean;
8
9 import javax.persistence.Entity;
10
11 @Entity
12 public class Cat extends Pet
13 {
14    int lives;
15
16    public int getLives()
17    {
18       return lives;
19    }
20
21    public void setLives(int lives)
22    {
23       this.lives = lives;
24    }
25 }
26
Popular Tags