KickJava   Java API By Example, From Geeks To Geeks.

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


1 //$Id: Document.java,v 1.1 2005/06/12 19:29:32 oneovthafew Exp $
2
package org.hibernate.test.annotations.inheritance.joined;
3
4 import javax.persistence.Column;
5 import javax.persistence.Entity;
6
7 /**
8  * @author Emmanuel Bernard
9  */

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