1 25 package org.objectweb.easybeans.tests.common.ejbs.entity.entitytest00; 26 27 import javax.persistence.DiscriminatorValue; 28 import javax.persistence.Entity; 29 import javax.persistence.EnumType; 30 import javax.persistence.Enumerated; 31 32 33 34 39 @Entity 40 @DiscriminatorValue("Professor") 41 public class Professor extends Person { 42 43 46 private static final long serialVersionUID = -6979637156066932597L; 47 48 51 private Degree degree; 52 53 54 58 @Enumerated(EnumType.STRING) 59 public Degree getDegree() { 60 return degree; 61 } 62 63 67 public void setDegree(final Degree degree) { 68 this.degree = degree; 69 } 70 71 } 72 | Popular Tags |