- don't copy created/updated timestamps
Signed-off-by: Roland Häder <roland@mxchange.org>
throw new IllegalArgumentException("sourcerCategory and targetCategory are the same."); //NOI18N
}
- // Copy all:
- targetCategory.setCategoryEntryCreated(sourceCategory.getCategoryEntryCreated());
- targetCategory.setCategoryEntryUpdated(sourceCategory.getCategoryEntryUpdated());
+ // Copy all fields
targetCategory.setCategoryI18nKey(sourceCategory.getCategoryI18nKey());
targetCategory.setCategoryId(sourceCategory.getCategoryId());
targetCategory.setCategoryShownInStatistics(sourceCategory.getCategoryShownInStatistics());