BF [ 1787920 ] GenerateModel doesnt pay attention to IsActive

* removed System.out.println calls
This commit is contained in:
teo_sarca 2007-09-05 06:13:09 +00:00
parent 349beff931
commit fe8f79a3b6
2 changed files with 6 additions and 3 deletions

View File

@ -299,7 +299,8 @@ public class ModelClassGenerator
+ " AND c.ColumnName <> 'IsActive'" + " AND c.ColumnName <> 'IsActive'"
+ " AND c.ColumnName NOT LIKE 'Created%'" + " AND c.ColumnName NOT LIKE 'Created%'"
+ " AND c.ColumnName NOT LIKE 'Updated%' " + " AND c.ColumnName NOT LIKE 'Updated%' "
+ "ORDER BY c.ColumnName"; + " AND c.IsActive='Y'"
+ " ORDER BY c.ColumnName";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
try try
{ {

View File

@ -240,7 +240,8 @@ public class ModelInterfaceGenerator {
+ " AND c.ColumnName <> 'IsActive'" + " AND c.ColumnName <> 'IsActive'"
+ " AND c.ColumnName NOT LIKE 'Created%'" + " AND c.ColumnName NOT LIKE 'Created%'"
+ " AND c.ColumnName NOT LIKE 'Updated%' " + " AND c.ColumnName NOT LIKE 'Updated%' "
+ "ORDER BY c.ColumnName"; + " AND c.IsActive='Y'"
+ " ORDER BY c.ColumnName";
PreparedStatement pstmt = null; PreparedStatement pstmt = null;
try { try {
pstmt = DB.prepareStatement(sql, null); pstmt = DB.prepareStatement(sql, null);
@ -483,7 +484,8 @@ public class ModelInterfaceGenerator {
return; return;
} }
if (className.equals("byte[]")) { if (className.equals("byte[]")) {
System.out.println("ERROR"); log.warning("Invalid type - "+className);
return;
} }
s_importClasses.add(className); s_importClasses.add(className);
} }