1 package org.hibernate.test.annotations.inheritance.union; 3 4 import javax.persistence.Entity; 5 import javax.persistence.Table; 6 7 10 @Entity 11 @Table(name="DocumentUnion") 12 public class Document extends File { 13 private int size; 14 15 Document() {} 16 Document(String 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 |