JHipster relation between predefined table USER and my own table

Viewed 3321

I need to define new table related to predefined 'User' table. Please, help me to write a correct JDL code for this entity diagram

I tried to write file "mytable.jh" and import :>jhipster import-jdl mytable.jh

entity MyTable{
    userid Long, //relation to table jhi_user
}

relationship OneToMany {
  User{id} to Mytable{userid}
}

and got

{ name: 'IllegalAssociationException',
  message: 'Relationships from User entity is not supported in the declaration between User and Mytable.',
  prototype:
   Error
2 Answers
Related