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