[ 1787876 ] ModelClassGenerator: list constants should be ordered

[ 1787833 ] ModelInterfaceGenerator: don't write timestamp
This commit is contained in:
teo_sarca 2007-09-04 15:55:38 +00:00
parent a15f456203
commit 9096fbb3fb
2 changed files with 4 additions and 6 deletions

View File

@ -53,6 +53,7 @@ import org.compiere.util.Util;
* <li>FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
* <li>BF [ 1781632 ] Generated class/interfaces should be UTF-8
* <li>better formating of generated source
* <li>[ 1787876 ] ModelClassGenerator: list constants should be ordered
* @author Victor Perez, e-Evolution
* <li>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
{

View File

@ -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;
* <li>FR [ 1781630 ] Generated class/interfaces have a lot of unused imports
* <li>BF [ 1781632 ] Generated class/interfaces should be UTF-8
* <li>better formating of generated source
* <li>BF [ 1787833 ] ModelInterfaceGenerator: don't write timestamp
* @author Victor Perez, e-Evolution
* <li>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")