1 package org.hibernate.test.annotations.inheritance.joined; 3 4 import javax.persistence.AccessType; 5 import javax.persistence.Entity; 6 import javax.persistence.FetchType; 7 import javax.persistence.ManyToOne; 8 import javax.persistence.Id; 9 import javax.persistence.GeneratorType; 10 11 14 @Entity(access=AccessType.FIELD) 15 public class ProgramExecution { 16 @Id(generate=GeneratorType.AUTO) 17 private Integer id; 18 private String action; 19 @ManyToOne(fetch=FetchType.LAZY) 20 private File appliesOn; 21 22 23 public File getAppliesOn() { 24 return appliesOn; 25 } 26 27 public void setAppliesOn(File appliesOn) { 28 this.appliesOn = appliesOn; 29 } 30 31 public String getAction() { 32 return action; 33 } 34 35 public void setAction(String action) { 36 this.action = action; 37 } 38 39 40 public Integer getId() { 41 return id; 42 } 43 44 public void setId(Integer id) { 45 this.id = id; 46 } 47 } 48 | Popular Tags |