我需要定义与预定义的“用户”表相关的新表。请帮我为这个 实体图写一个正确的 JDL 代码
我尝试编写文件“mytable.jh”并导入:>jhipster import-jdl mytable.jh
entity MyTable{
userid Long, //relation to table jhi_user
}
relationship OneToMany {
User{id} to Mytable{userid}
}
并得到
{ name: 'IllegalAssociationException',
message: 'Relationships from User entity is not supported in the declaration between User and Mytable.',
prototype:
Error