Files
ofbiz-framework/framework/entity/entitydef
Jacques Le Roux ff4e16e98e Implemented: Replace fields with "id-ne", "id-long-ne" and "id-vlong-ne"
with "id", "id-long" and "id-vlong" respectively which are primary keys
(OFBIZ-9354)

As discussed in http://markmail.org/message/d2tpovewhtotukwa the "not empty" 
field types  ("id-ne", "id-long-ne" and  "id-vlong-ne") were initially added 
to implement validations on data. But, because the validations where only 
implemented in some place like webtools, it contradicts the distinction to be 
upheld on various layers. So it is better to remove these field types. 
So we will remove all those field types and will create sub tickets to replace 
them in entity definitions by corresponding "id" types.

When replacing the "not empty" field types in entity definitions by 
corresponding "id" types we will add a *not-null="true"* attribute to "makes 
the field NOT NULL on the database (like primary key fields)" as explained in 
"not-null" documentation in fieldtypemodel.xsd.  
We will finally clean the documentation of the "not-null" in fieldtypemodel.xsd.

Deepak: If field is define as primary key field so by default is will be set as 
not-null=true, so we can replace all the primary key field type from id-ne to id
 in one shot. 

Thanks: Deepak and Aditya

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1794743 13f79535-47bb-0310-9956-ffa450edef68
2017-05-10 18:40:24 +00:00
..