0

[JHipster Generator 4.14.4]

i generate an "article" with some relationships with JDL Studio. Relationships in my article.json look like this :

    "relationships": [
    {
        "relationshipType": "one-to-one",
        "relationshipName": "adress",
        "otherEntityName": "adressDomain",
        "otherEntityField": "id",
        "ownerSide": true,
        "otherEntityRelationshipName": "article"
    },

How can i add the required rules to my relationship?

i tried "relationshipValidateRules": "required" but it doesnt works.

Nizam
  • 5,698
  • 9
  • 45
  • 57
3logy
  • 2,634
  • 8
  • 46
  • 99

1 Answers1

1

My Answer is not to change in the JSON File but to regenerate the *.jh file on JDL-Studio.

Here is how to add the required:

relationship OneToOne {
   Article{adress required} to AdressDomain
}
3logy
  • 2,634
  • 8
  • 46
  • 99