1 19 20 package org.apache.cayenne.jpa.map; 21 22 import javax.persistence.AttributeOverride; 23 24 import org.apache.cayenne.util.TreeNodeChild; 25 26 public class JpaAttributeOverride extends JpaAttribute { 27 28 protected JpaColumn column; 29 30 public JpaAttributeOverride() { 31 32 } 33 34 public JpaAttributeOverride(AttributeOverride annotation) { 35 name = annotation.name(); 36 37 if (annotation.column() != null) { 38 column = new JpaColumn(annotation.column()); 39 } 40 } 41 42 @TreeNodeChild 43 public JpaColumn getColumn() { 44 return column; 45 } 46 47 public void setColumn(JpaColumn column) { 48 this.column = column; 49 } 50 } 51 | Popular Tags |