Author: jleroux
Date: Thu Dec 29 12:41:32 2011 New Revision: 1225513 URL: http://svn.apache.org/viewvc?rev=1225513&view=rev Log: This reverts r1222244 and should fix "Can not create drop shipment order" https://issues.apache.org/jira/browse/OFBIZ-4637 reported by Sergei Biletnikov and confirmed by mz4wheeler It also fixes the wrong repo url in revert.bat Modified: ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java ofbiz/branches/release11.04/revert.bat Modified: ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java?rev=1225513&r1=1225512&r2=1225513&view=diff ============================================================================== --- ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java (original) +++ ofbiz/branches/release11.04/framework/entity/src/org/ofbiz/entity/GenericEntity.java Thu Dec 29 12:41:32 2011 @@ -1046,42 +1046,6 @@ public class GenericEntity extends Obser element.setAttribute(name, value); } } - else { - ModelFieldType type = null; - try { - type = getDelegator().getEntityFieldType(getModelEntity(), modelField.getType()); - } catch (GenericEntityException e) { - Debug.logWarning(e, module); - } - if (type == null) throw new IllegalArgumentException("Type " + modelField.getType() + " not found"); - String fieldType = type.getJavaType(); - - try { - switch (SqlJdbcUtil.getType(fieldType)) { - case 1: // String - set(name, ""); - break; - case 2: // Timestamp - case 3: // Time - case 4: // java.sql.Date - case 5: // Integer - case 6: // Long - case 7: // Float - case 8: // Double - case 9: // BigDecimal - case 10:// Boolean - case 11:// Object - case 12:// Blob, byte[], ByteBuffer, HeapByteBuffer - case 13:// Clob - case 14:// java.util.Date - case 15:// Collection: ArrayList, HashSet, LinkedHashSet, LinkedList - element.setAttribute(name, "null"); - break; - } - } catch (GenericNotImplementedException ex) { - throw new IllegalArgumentException(ex.getMessage()); - } - } } return element; Modified: ofbiz/branches/release11.04/revert.bat URL: http://svn.apache.org/viewvc/ofbiz/branches/release11.04/revert.bat?rev=1225513&r1=1225512&r2=1225513&view=diff ============================================================================== --- ofbiz/branches/release11.04/revert.bat (original) +++ ofbiz/branches/release11.04/revert.bat Thu Dec 29 12:41:32 2011 @@ -20,4 +20,4 @@ rem #################################### rem to revert back a revision in local copy. echo on -svn merge -c -%1 https://svn.apache.org/repos/asf/ofbiz/trunk +svn merge -c -%1 https://svn.apache.org/repos/asf/ofbiz/branches/release11.04 |
Free forum by Nabble | Edit this page |