In JHipster how to create entity with relationship with User?

前端 未结 4 1760
伪装坚强ぢ
伪装坚强ぢ 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:03

    at a good sample in an official document is say :

    entity Blog {
        name String required minlength(3),
        handle String required minlength(2)
    }
    
    relationship ManyToOne {
        Blog{user(login)} to User 
    }
    
    

    jdl-samples/blog.jh

提交回复
热议问题