1 19 20 package org.apache.cayenne.jpa.map; 21 22 public abstract class JpaAttribute { 23 24 protected String name; 25 protected JpaPropertyDescriptor propertyDescriptor; 26 27 public JpaPropertyDescriptor getPropertyDescriptor() { 28 return propertyDescriptor; 29 } 30 31 public void setPropertyDescriptor(JpaPropertyDescriptor propertyDescriptor) { 32 this.propertyDescriptor = propertyDescriptor; 33 } 34 35 public String getName() { 36 return name; 37 } 38 39 public void setName(String name) { 40 this.name = name; 41 } 42 43 @Override 44 public String toString() { 45 String className = getClass().getName(); 46 return className.substring(className.lastIndexOf('.') + 1) + ":" + name; 47 } 48 } 49 | Popular Tags |