Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

ROO-3293: can't change name or delete persistence methods

  • Loading branch information...
commit aeedfcf6bfd040a176b89910e5f49ac384e9ccec 1 parent 491e811
Alan Stewart authored
View
19 ...src/main/java/org/springframework/roo/addon/jpa/activerecord/JpaCrudAnnotationValues.java
@@ -11,7 +11,6 @@
import static org.springframework.roo.addon.jpa.activerecord.RooJpaActiveRecord.REMOVE_METHOD_DEFAULT;
import static org.springframework.roo.model.RooJavaType.ROO_JPA_ACTIVE_RECORD;
-import org.apache.commons.lang3.StringUtils;
import org.springframework.roo.classpath.details.annotations.populator.AbstractAnnotationValues;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulate;
import org.springframework.roo.classpath.details.annotations.populator.AutoPopulationUtils;
@@ -51,16 +50,15 @@ public JpaCrudAnnotationValues(
}
public String getClearMethod() {
- return StringUtils.defaultIfEmpty(clearMethod, CLEAR_METHOD_DEFAULT);
+ return clearMethod;
}
public String getCountMethod() {
- return StringUtils.defaultIfEmpty(countMethod, COUNT_METHOD_DEFAULT);
+ return countMethod;
}
public String getFindAllMethod() {
- return StringUtils.defaultIfEmpty(findAllMethod,
- FIND_ALL_METHOD_DEFAULT);
+ return findAllMethod;
}
/**
@@ -83,15 +81,15 @@ public String getFindEntriesMethod() {
}
public String getFindMethod() {
- return StringUtils.defaultIfEmpty(findMethod, FIND_METHOD_DEFAULT);
+ return findMethod;
}
public String getFlushMethod() {
- return StringUtils.defaultIfEmpty(flushMethod, FLUSH_METHOD_DEFAULT);
+ return flushMethod;
}
public String getMergeMethod() {
- return StringUtils.defaultIfEmpty(mergeMethod, MERGE_METHOD_DEFAULT);
+ return mergeMethod;
}
public String getPersistenceUnit() {
@@ -99,12 +97,11 @@ public String getPersistenceUnit() {
}
public String getPersistMethod() {
- return StringUtils
- .defaultIfEmpty(persistMethod, PERSIST_METHOD_DEFAULT);
+ return persistMethod;
}
public String getRemoveMethod() {
- return StringUtils.defaultIfEmpty(removeMethod, REMOVE_METHOD_DEFAULT);
+ return removeMethod;
}
public String getTransactionManager() {
Please sign in to comment.
Something went wrong with that request. Please try again.