Removed Mandatory and not null constraint which is not usable in distributed mode
git-svn-id: https://svn.d4science.research-infrastructures.eu/gcube/trunk/information-system/resource-registry@132088 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
502d5a84bd
commit
7da28e7fcf
|
@ -183,8 +183,15 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
property.getName(),
|
||||
OType.getById(property.getType().byteValue()));
|
||||
ovp.setDescription(property.getDescription());
|
||||
ovp.setMandatory(property.isMandatory());
|
||||
ovp.setNotNull(property.isNotnull());
|
||||
|
||||
/* Mandatory and notNull does not work in distributed mode:
|
||||
* so that on Type declaration they are forced to false
|
||||
* ovp.setMandatory(property.isMandatory());
|
||||
* ovp.setNotNull(property.isNotnull());
|
||||
*/
|
||||
ovp.setMandatory(false);
|
||||
ovp.setNotNull(false);
|
||||
|
||||
ovp.setReadonly(property.isReadonly());
|
||||
ovp.setRegexp(property.getRegexpr());
|
||||
if (property.getLinkedClass() != null) {
|
||||
|
@ -253,8 +260,15 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
OProperty op = oet.createProperty(property.getName(),
|
||||
OType.getById(property.getType().byteValue()));
|
||||
op.setDescription(property.getDescription());
|
||||
op.setMandatory(property.isMandatory());
|
||||
op.setNotNull(property.isNotnull());
|
||||
|
||||
/* Mandatory and notNull does not work in distributed mode:
|
||||
* so that on Type declaration they are forced to false
|
||||
* op.setMandatory(property.isMandatory());
|
||||
* op.setNotNull(property.isNotnull());
|
||||
*/
|
||||
op.setMandatory(false);
|
||||
op.setNotNull(false);
|
||||
|
||||
op.setReadonly(property.isReadonly());
|
||||
op.setRegexp(property.getRegexpr());
|
||||
if (property.getLinkedClass() != null) {
|
||||
|
@ -324,8 +338,15 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
OProperty ovp = oClass.createProperty(property.getName(),
|
||||
OType.getById(property.getType().byteValue()));
|
||||
ovp.setDescription(property.getDescription());
|
||||
ovp.setMandatory(property.isMandatory());
|
||||
ovp.setNotNull(property.isNotnull());
|
||||
|
||||
/* Mandatory and notNull does not work in distributed mode:
|
||||
* so that on Type declaration they are forced to false
|
||||
* ovp.setMandatory(property.isMandatory());
|
||||
* ovp.setNotNull(property.isNotnull());
|
||||
*/
|
||||
ovp.setMandatory(false);
|
||||
ovp.setNotNull(false);
|
||||
|
||||
ovp.setReadonly(property.isReadonly());
|
||||
ovp.setRegexp(property.getRegexpr());
|
||||
if (property.getLinkedClass() != null) {
|
||||
|
@ -378,8 +399,15 @@ public class SchemaManagementImpl implements SchemaManagement {
|
|||
OProperty ovp = oClass.createProperty(property.getName(),
|
||||
OType.getById(property.getType().byteValue()));
|
||||
ovp.setDescription(property.getDescription());
|
||||
ovp.setMandatory(property.isMandatory());
|
||||
ovp.setNotNull(property.isNotnull());
|
||||
|
||||
/* Mandatory and notNull does not work in distributed mode:
|
||||
* so that on Type declaration they are forced to false
|
||||
* ovp.setMandatory(property.isMandatory());
|
||||
* ovp.setNotNull(property.isNotnull());
|
||||
* /
|
||||
ovp.setMandatory(false);
|
||||
ovp.setNotNull(false);
|
||||
|
||||
ovp.setReadonly(property.isReadonly());
|
||||
ovp.setRegexp(property.getRegexpr());
|
||||
if (property.getLinkedClass() != null) {
|
||||
|
|
Loading…
Reference in New Issue