In JHipster how to create entity with relationship with User?

前端 未结 4 1732
伪装坚强ぢ
伪装坚强ぢ 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条回答
  •  野趣味
    野趣味 (楼主)
    2020-12-31 02:00

    If you are using the 1.x version, this wasn't made to work, so basically you should do it by hand, without the generator (but it is definitely doable). For the 2.x version, we have refactored the User object to have an ID field -> this should make this a lot easier, but as this is not released yet, we don't have a feedback at the moment.

提交回复
热议问题