In JHipster how to create entity with relationship with User?

前端 未结 4 1749
伪装坚强ぢ
伪装坚强ぢ 2020-12-31 01:10

I need to create my own entities using the JHipster using the command \"yo jhipster:entity myEntity\" that have many-to-one relationship with the User entity that comes by d

4条回答
  •  Happy的楠姐
    2020-12-31 02:15

    Just to add to the correct answer by @stoffer, if you're using the jdl it will look like:

    relationship ManyToOne {
        Owner{user(email)} to User{owner(name)}
    }
    

提交回复
热议问题