Consultation with relational model of personal project - JHipster

0

Hello, how are you? I wanted to make a query, build the basic project with jhipster 4, and even there all right, but now I want to go adding tables of my model of an app that I did in another project, and I can not find the way to make the table below of Company, my model has Company 1 - > * Users. Using the console assistant has left me the entity User, and I've been doing it several times and I can not make the model look good, also try using jdlstudio and nothing:

entity Empresa{
    nombreEmpresa String,
    domicilio String,
    telefono String,
    email String
}

entity Cliente{
    nombre String,
    apellido String,
    celular String,
    telefono String,
    email String,
    domicilio String,
    colegio String
}
/**
  * Relacion Una empresa tiene uno o muchos usuarios
  */
relationship OneToMany {
    Empresa{user} to User{empresa},
    Empresa{cliente} to Cliente{empresa}
}

I hope you can help me, thank you very much.

    
asked by Juan Manuel Lopez 09.03.2017 в 23:07
source

1 answer

0

Hello, it's a bit late, but if you could not do it:

relationship ManyToOne {
    Empresa{
        user(Login)
    } to User
}

Greetings

    
answered by 16.11.2017 / 14:16
source