Study owner = dprop.getOwner().getOwnerStudy();
// Synchronize the object with the current Hibernate session.
- // owner = getStudyDAO().merge(owner);
+ owner.setLastLocalIndex(getStudyDAO().get(owner.getIndex())
+ .getLastLocalIndex());
SimpleDateFormat tostring = new SimpleDateFormat("yyyy"); // RKV: NOPMD: TODO: Use locale here?
String year = tostring.format(owner.getDate());
.toString();
aDoc.getFile().changePath(path);
owner = getStudyDAO().merge(owner);
- // getStudyDAO().update(owner);
}
/**
String res;
if (scheme == FileNaming.encoded) {
res = scope.getReference();
- }else if (scheme == FileNaming.asis) {
+ } else if (scheme == FileNaming.asis) {
res = aDoc.getFile().getName();
} else {
res = aDoc.getTitle();