KickJava   Java API By Example, From Geeks To Geeks.

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


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 Dog extends Pet
13 {
14    private int numBones;
15
16    public int getNumBones()
17    {
18       return numBones;
19    }
20
21    public void setNumBones(int numBones)
22    {
23       this.numBones = numBones;
24    }
25 }
26
Popular Tags