Я пытаюсь создать иерархическую структуру папок. Вот моя папка:
$ yo jhipster:entity Folder
The entity Folder is being created.
Generating field #1
? Do you want to add a field to your entity? Yes
? What is the name of your field? name
? What is the type of your field? String
? Do you want to add validation rules to your field? No
=================Folder=================
name (String)
Generating field #2
? Do you want to add a field to your entity? Yes
? What is the name of your field? parentId
? What is the type of your field? Long
? Do you want to add validation rules to your field? No
=================Folder=================
name (String)
parentId (Long)
Generating field #3
? Do you want to add a field to your entity? No
=================Folder=================
name (String)
parentId (Long)
Я пытаюсь определить, что мне нужно предоставить генератору сущностей jhipster, чтобы он работал. Это то, что у меня есть ...
Generating relationships with other entities
? Do you want to add a relationship to another entity? Yes
? What is the name of the other entity? Folder
? What is the name of the relationship? parent
? What is the type of the relationship? one-to-many
? What is the name of this relationship in the other entity? child
Я на правильном пути? Как мне создать у ребенка отношения «многие к одному»? Я получаю предупреждение, если пытаюсь создать его с помощью объекта «Папка». После этого его невозможно сгенерировать.