KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > hibernate > test > annotations > inheritance > union > Document


1 //$Id: Document.java,v 1.2 2005/07/20 00:18:06 epbernard Exp $
2
package org.hibernate.test.annotations.inheritance.union;
3
4 import javax.persistence.Entity;
5 import javax.persistence.Table;
6
7 /**
8  * @author Emmanuel Bernard
9  */

10 @Entity
11 @Table(name="DocumentUnion")
12 public class Document extends File {
13     private int size;
14     
15     Document() {}
16     Document(String JavaDoc name, int size) {
17         super(name);
18         this.size = size;
19     }
20
21     public int getSize() {
22         return size;
23     }
24
25     public void setSize(int size) {
26         this.size = size;
27     }
28 }
29
Popular Tags