1 25 26 package org.objectweb.easybeans.deployment.annotations.impl; 27 28 import javax.persistence.PersistenceContextType; 29 30 35 public class JavaxPersistenceContext { 36 37 40 private String name = null; 41 42 45 private String unitName = null; 46 47 50 private PersistenceContextType type = null; 51 52 55 public JavaxPersistenceContext() { 56 this.name = ""; 58 this.unitName = ""; 59 this.type = PersistenceContextType.TRANSACTION; 60 } 61 62 65 public PersistenceContextType getType() { 66 return type; 67 } 68 69 73 public void setType(final PersistenceContextType type) { 74 this.type = type; 75 } 76 77 80 public String getUnitName() { 81 return unitName; 82 } 83 84 88 public void setUnitName(final String unitName) { 89 this.unitName = unitName; 90 } 91 92 95 public String getName() { 96 return name; 97 } 98 99 103 public void setName(final String name) { 104 this.name = name; 105 } 106 107 } 108 | Popular Tags |