1 29 30 package com.caucho.amber.cfg; 31 32 33 36 public class PersistenceUnitDefaultsConfig { 37 38 40 private String _schema; 42 private String _catalog; 43 private AccessType _access; 44 private boolean _isCascadePersist; 45 private EntityListenersConfig _entityListeners; 46 47 48 public String getSchema() 49 { 50 return _schema; 51 } 52 53 public void setSchema(String schema) 54 { 55 _schema = schema; 56 } 57 58 public String getCatalog() 59 { 60 return _catalog; 61 } 62 63 public void setCatalog(String catalog) 64 { 65 _catalog = catalog; 66 } 67 68 public AccessType getAccess() 69 { 70 return _access; 71 } 72 73 public void setAccess(String access) 74 { 75 _access = AccessType.valueOf(access); 76 } 77 78 public boolean getCascadePersist() 79 { 80 return _isCascadePersist; 81 } 82 83 public void setCascadePersist(boolean isCascadePersist) 84 { 85 _isCascadePersist = isCascadePersist; 86 } 87 88 public EntityListenersConfig getEntityListeners() 89 { 90 return _entityListeners; 91 } 92 93 public void setEntityListeners(EntityListenersConfig entityListeners) 94 { 95 _entityListeners = entityListeners; 96 } 97 } 98 | Popular Tags |