minor - make generated id more readable.

This commit is contained in:
Heng Sin Low 2010-12-16 16:26:08 +08:00
parent 8816fa5a9f
commit 5d487f1ad2
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,8 @@ public class AdempiereIdGenerator implements IdGenerator {
i = 1;
}
desktop.setAttribute(DESKTOP_ID_ATTRIBUTE, String.valueOf(i));
if (!prefix.endsWith("_"))
prefix = prefix + "_";
return prefix + i;
}