Changeset 37 for trunk/fmgVen/src/com/fmguler/ven/QueryGenerator.java
- Timestamp:
- Mar 20, 2012, 2:40:52 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/fmgVen/src/com/fmguler/ven/QueryGenerator.java
r32 r37 21 21 import com.fmguler.ven.util.VenList; 22 22 import java.beans.PropertyDescriptor; 23 import java.math.BigDecimal; 23 24 import java.util.Date; 24 25 import java.util.HashSet; … … 47 48 this.dbClasses.add(Double.class); 48 49 this.dbClasses.add(Boolean.class); 50 this.dbClasses.add(BigDecimal.class); 49 51 } 50 52 … … 91 93 //if (fieldName.equals("id")) continue; //remove if it does not break the sequence 92 94 if (dbClasses.contains(fieldClass)) { //direct database field (Integer,String,Date, etc) 93 query.append(columnName );95 query.append(columnName.equals("order")?"\"order\"":columnName); 94 96 query.append(","); 95 97 values.append(":").append(fieldName); … … 129 131 String fieldName = pdArr[i].getName(); //field name 130 132 if (dbClasses.contains(fieldClass)) { //direct database field (Integer,String,Date, etc) 131 query.append(columnName ).append("=:").append(fieldName);133 query.append(columnName.equals("order")?"\"order\"":columnName).append("=:").append(fieldName); 132 134 query.append(","); 133 135 }
Note: See TracChangeset
for help on using the changeset viewer.