You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Deepak Dixit (JIRA)" <ji...@apache.org> on 2017/05/09 08:27:04 UTC

[jira] [Commented] (OFBIZ-9353) Implement "not-null" attribute for a entity field

    [ https://issues.apache.org/jira/browse/OFBIZ-9353?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16002277#comment-16002277 ] 

Deepak Dixit commented on OFBIZ-9353:
-------------------------------------

Hi Aditya,

This functionality is already exists OOTB, Please refer ModelField.java and entitymodel.xsd. 

> Implement "not-null" attribute for a entity field 
> --------------------------------------------------
>
>                 Key: OFBIZ-9353
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-9353
>             Project: OFBiz
>          Issue Type: Sub-task
>            Reporter: Aditya Sharma
>            Assignee: Aditya Sharma
>            Priority: Trivial
>
> When defining a field for an entity in entitymodel.xml, setting not-null attribute will allow enforcing SQL NOT NULL constraint at the database level.
> Changes:
> - Update documentation in fieldtypemodel.xsd with the new attribute
> - Add implementation for the "not-null" attribute



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)