A patch from Ray Barlow "XML export of a no-auto-stamp entity does not work" (https://issues.apache.org/jira/browse/OFBIZ-1728) - OFBIZ-1728
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@647413 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -220,7 +220,13 @@ if (tobrowser) {
|
||||
|
||||
boolean beganTransaction = TransactionUtil.begin(3600);
|
||||
try {
|
||||
EntityListIterator values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null, UtilMisc.toList("-createdTxStamp"), efo);
|
||||
ModelEntity me = reader.getModelEntity(curEntityName);
|
||||
EntityListIterator values = null;
|
||||
if (me.getNoAutoStamp() == true) {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, null, null, null, me.getPkFieldNames(), efo);
|
||||
} else {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null, UtilMisc.toList("-createdTxStamp"), efo);
|
||||
}
|
||||
|
||||
GenericValue value = null;
|
||||
long curNumberWritten = 0;
|
||||
@@ -275,7 +281,11 @@ if (outpath != null){
|
||||
results.add("["+fileNumber +"] [vvv] " + curEntityName + " skipping view entity");
|
||||
continue;
|
||||
}
|
||||
values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null, me.getPkFieldNames(), efo);
|
||||
if (me.getNoAutoStamp() == true) {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, null, null, null, me.getPkFieldNames(), efo);
|
||||
} else {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null, me.getPkFieldNames(), efo);
|
||||
}
|
||||
boolean isFirst = true;
|
||||
PrintWriter writer = null;
|
||||
int fileSplitNumber = 1;
|
||||
|
||||
@@ -56,10 +56,17 @@ under the License.
|
||||
try {
|
||||
beganTransaction = TransactionUtil.begin();
|
||||
|
||||
Iterator i = passedEntityNames.iterator();
|
||||
while(i.hasNext()) {
|
||||
Iterator i = passedEntityNames.iterator();
|
||||
while(i.hasNext()) {
|
||||
String curEntityName = (String)i.next();
|
||||
EntityListIterator values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null);
|
||||
|
||||
ModelEntity me = reader.getModelEntity(curEntityName);
|
||||
EntityListIterator values = null;
|
||||
if (me.getNoAutoStamp() == true) {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, null, null, null);
|
||||
} else {
|
||||
values = delegator.findListIteratorByCondition(curEntityName, entityDateCond, null, null);
|
||||
}
|
||||
|
||||
GenericValue value = null;
|
||||
while ((value = (GenericValue) values.next()) != null) {
|
||||
|
||||
Reference in New Issue
Block a user