1 19 20 21 package org.apache.cayenne.jpa.map; 22 23 import javax.persistence.PrimaryKeyJoinColumn; 24 25 public class JpaPrimaryKeyJoinColumn { 26 27 protected String name; 28 protected String referencedColumnName; 29 protected String columnDefinition; 30 31 public JpaPrimaryKeyJoinColumn() { 32 33 } 34 35 public JpaPrimaryKeyJoinColumn(PrimaryKeyJoinColumn annotation) { 36 name = annotation.name(); 37 referencedColumnName = annotation.referencedColumnName(); 38 columnDefinition = annotation.columnDefinition(); 39 } 40 41 52 public String getColumnDefinition() { 53 return columnDefinition; 54 } 55 56 public void setColumnDefinition(String columnDefinition) { 57 this.columnDefinition = columnDefinition; 58 } 59 60 public String getName() { 61 return name; 62 } 63 64 public void setName(String name) { 65 this.name = name; 66 } 67 68 public String getReferencedColumnName() { 69 return referencedColumnName; 70 } 71 72 public void setReferencedColumnName(String referencedColumnName) { 73 this.referencedColumnName = referencedColumnName; 74 } 75 } 76 | Popular Tags |