1 29 30 package com.caucho.amber.cfg; 31 32 import javax.persistence.FetchType; 33 34 35 38 abstract public class AbstractRelationConfig { 39 40 private String _name; 42 private String _targetEntity; 43 private FetchType _fetch; 44 45 private JoinTableConfig _joinTable; 47 private CascadeConfig _cascade; 48 49 public String getName() 50 { 51 return _name; 52 } 53 54 public void setName(String name) 55 { 56 _name = name; 57 } 58 59 public String getTargetEntity() 60 { 61 return _targetEntity; 62 } 63 64 public void setTargetEntity(String targetEntity) 65 { 66 _targetEntity = targetEntity; 67 } 68 69 public FetchType getFetch() 70 { 71 return _fetch; 72 } 73 74 public void setFetch(String fetch) 75 { 76 _fetch = FetchType.valueOf(fetch); 77 } 78 79 public CascadeConfig getCascade() 80 { 81 return _cascade; 82 } 83 84 public void setCascade(CascadeConfig cascade) 85 { 86 _cascade = cascade; 87 } 88 89 public JoinTableConfig getJoinTable() 90 { 91 return _joinTable; 92 } 93 94 public void setJoinTable(JoinTableConfig joinTable) 95 { 96 _joinTable = joinTable; 97 } 98 } 99 | Popular Tags |