diff --git a/base/src/org/adempiere/util/ModelClassGenerator.java b/base/src/org/adempiere/util/ModelClassGenerator.java
index 9974228b54..5d5d9fc3ee 100644
--- a/base/src/org/adempiere/util/ModelClassGenerator.java
+++ b/base/src/org/adempiere/util/ModelClassGenerator.java
@@ -53,6 +53,7 @@ import org.compiere.util.Util;
*
FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
* BF [ 1781632 ] Generated class/interfaces should be UTF-8
* better formating of generated source
+ * [ 1787876 ] ModelClassGenerator: list constants should be ordered
* @author Victor Perez, e-Evolution
* FR [ 1785001 ] Using ModelPackage of EntityType to Generate Model Class
*/
@@ -714,7 +715,7 @@ public class ModelClassGenerator
if (nullable)
statement.append("\n\t\tif (").append(columnName).append(" == null");
//
- String sql = "SELECT Value, Name FROM AD_Ref_List WHERE AD_Reference_ID=?";
+ String sql = "SELECT Value, Name FROM AD_Ref_List WHERE AD_Reference_ID=? ORDER BY AD_Ref_List_ID";
PreparedStatement pstmt = null;
try
{
diff --git a/base/src/org/adempiere/util/ModelInterfaceGenerator.java b/base/src/org/adempiere/util/ModelInterfaceGenerator.java
index b4e2549cad..039174a45d 100644
--- a/base/src/org/adempiere/util/ModelInterfaceGenerator.java
+++ b/base/src/org/adempiere/util/ModelInterfaceGenerator.java
@@ -35,7 +35,6 @@ import java.io.OutputStreamWriter;
import java.io.Writer;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
-import java.sql.Timestamp;
import java.util.Collection;
import java.util.TreeSet;
import java.util.logging.Level;
@@ -58,6 +57,7 @@ import org.compiere.util.Env;
* FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
* BF [ 1781632 ] Generated class/interfaces should be UTF-8
* better formating of generated source
+ * BF [ 1787833 ] ModelInterfaceGenerator: don't write timestamp
* @author Victor Perez, e-Evolution
* FR [ 1785001 ] Using ModelPackage of EntityType to Generate Model Class
*/
@@ -98,9 +98,6 @@ public class ModelInterfaceGenerator {
+ " * - Company (http://www.site.com) *\n"
+ " **********************************************************************/\n";
- /** Generated on */
- private Timestamp s_run = new Timestamp(System.currentTimeMillis());
-
/** Logger */
private static CLogger log = CLogger.getCLogger(ModelInterfaceGenerator.class);
@@ -192,7 +189,7 @@ public class ModelInterfaceGenerator {
// Interface
start.append("/** Generated Interface for ").append(tableName).append("\n")
.append(" * @author Trifon Trifonov (generated) \n")
- .append(" * @version ").append(Adempiere.MAIN_VERSION).append(" - ").append(s_run).append("\n")
+ .append(" * @version ").append(Adempiere.MAIN_VERSION).append(NL) //.append(" - ").append(s_run).append("\n")
.append(" */\n")
.append("public interface ").append(className).append(" {").append("\n")