Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0009019Openbravo ERPA. Platformpublic2009-05-13 12:592009-06-04 00:00
mtaal 
mtaal 
normalmajorhave not tried
closedfixed 
5
pi 
pi2.50MP2 
Core
No
0009019: Mandatory/not-null not set correctly in the Data Access Layer because Application Dictionary setting not correct
The Data Access Layer currently ignores the not-null/required set in the AD_Column because this value is used for the UI and does not represent the not-null constraint defined in the database.

The solution is for the Data Access Layer to read the column metadata from the database and based on that set the in-memory model setting. Note that for Oracle/Postgres there can be different queries required.

No tags attached.
related to defect 00168273.0RC6 closed alostale Is not possible to make a field mandatory 
Issue History
2009-05-13 12:59mtaalNew Issue
2009-05-13 12:59mtaalAssigned To => mtaal
2009-05-13 12:59mtaalRegression testing => No
2009-05-13 13:08hgbotCheckin
2009-05-13 13:08hgbotNote Added: 0016317
2009-05-13 13:08hgbotStatusnew => resolved
2009-05-13 13:08hgbotResolutionopen => fixed
2009-05-13 13:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/9b00912ca04b4c7bf0163c15dd6e585db4fb0749 [^]
2009-06-03 19:08psarobeStatusresolved => closed
2009-06-03 19:08psarobeFixed in Version => 2.50MP2
2009-06-04 00:00anonymoussf_bug_id0 => 2800784
2011-04-15 15:46alostaleRelationship addedrelated to 0016827

Notes
(0016317)
hgbot   
2009-05-13 13:08   
Repository: erp/devel/pi
Changeset: 9b00912ca04b4c7bf0163c15dd6e585db4fb0749
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Wed May 13 13:07:40 2009 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/9b00912ca04b4c7bf0163c15dd6e585db4fb0749 [^]

Fixes issue 9019, Mandatory/not-null not set correctly in the Data Access Layer because Application Dictionary setting not correct
Fixes issue 9018: Webservices are not using same logic as import functions for the actual update/insert of objects

---
M src/org/openbravo/base/model/ModelProvider.java
M src/org/openbravo/base/session/SessionFactoryController.java
M src/org/openbravo/dal/core/DalMappingGenerator.java
M src/org/openbravo/service/db/DataImportService.java
M src/org/openbravo/service/rest/DalWebService.java
---