[
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)