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