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