예제 #1
0
 public String getterName(EntityProperty p) {
   return "get" + firstLetterUp(p.getName());
 }
예제 #2
0
 public String propertyType(EntityProperty entityProperty) {
   return entityProperty.getPropertyType();
 }
예제 #3
0
 public String propertyCastType(EntityProperty entityProperty) {
   if (primitveToWrapper.containsKey(entityProperty.getPropertyType()))
     return primitveToWrapper.get(entityProperty.getPropertyType());
   return entityProperty.getPropertyType();
 }
예제 #4
0
 public String propertyName(EntityProperty entityProperty) {
   return entityProperty.getName();
 }
예제 #5
0
 public String entityName(EntityProperty property) {
   Entity entity = (Entity) property.eContainer();
   return entity.getName();
 }
예제 #6
0
 public String staticName(EntityProperty property) {
   StringBuilder result = allUpperCase(property.getName());
   return result.toString();
 }
예제 #7
0
 public String propertyTypeClass(EntityProperty property) {
   String propertyType = property.getPropertyType();
   return propertyType + ".class";
 }
예제 #8
0
 public String removeName(EntityProperty p) {
   return "remove" + firstLetterUp(p.getName());
 }