Author: jonesde
Date: Wed Feb 27 22:30:25 2008
New Revision: 631867
URL:
http://svn.apache.org/viewvc?rev=631867&view=revLog:
Small change to set isMandatory
Modified:
ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
Modified: ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java?rev=631867&r1=631866&r2=631867&view=diff==============================================================================
--- ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java (original)
+++ ofbiz/trunk/framework/entity/src/org/ofbiz/entity/model/ModelEntity.java Wed Feb 27 22:30:25 2008
@@ -1482,13 +1482,13 @@
relationshipMap.put("destination", relationship.getRelEntityName());
if ("many".equals(relationship.getType())) {
relationshipMap.put("isToMany", "Y");
+ relationshipMap.put("isMandatory", "N");
} else {
relationshipMap.put("isToMany", "N");
+ relationshipMap.put("isMandatory", "Y");
}
relationshipMap.put("joinSemantic", "EOInnerJoin");
- //nothing in OFBiz entity models for this yet, but might be nice to add in the future
- //relationshipMap.put("isMandatory", );
List<Map<String, Object>> joinsMapList = FastList.newInstance();
relationshipMap.put("joins", joinsMapList);