Details
-
Bug
-
Status: In Progress
-
Major
-
Resolution: Unresolved
-
18.12.16
-
None
-
None
Description
Entities with field attribute not-null="true", for fields that are not "prim-key" or "relation"
Cause GenericEntity.checkFks to throw "SQL Exception while executing the following:INSERT" for the valid data.
How to reproduce:
create Entity with field attribute not-null="true", for field that is not "prim-key" or "relation"
(sample "entitymodel_sample.xml" attached)
invoke "parseEntityXmlFile" from "org.apache.ofbiz.webtools.WebToolsServices" with "createDummyFks" set to "Y"
(sample code "sample.java", service settings "service.xml" and restore data "BACKUP_SAMPLE.xml" attached)