Closed yeferdiplomado closed 4 weeks ago
@mshima with jhipster + vue + java + postgresql and maven you can create a jdl of a functionality where you can add elements to a project and in those elements you can put both images and text and it is saved in a file system since the weight of the Images cannot be saved in the database because it would explode if not only saving the urls of the image and the images being saved in the file system, the images must be linked to the project element so that if you save it later you can see it in the element where it was created
I must create the basic jdl and then implement the file system for the images but I cannot run the jdl
It's working as expected. Elemento.proyecto is been added by ManyToOne relationship
relationship ManyToOne {
Elemento{proyecto} to Proyecto
}
and by OneToMany as back-reference.
relationship OneToMany {
Proyecto{elementos} to Elemento
}
You should rename one:
relationship OneToMany {
Proyecto{elementos} to Elemento{anotherProyecto}
}
I suppose this is answered. Closing.
JDL
entity Proyecto { nombre String required, descripcion String }
entity Elemento { titulo String required, texto String }
// Relación relationship ManyToOne { Elemento{proyecto} to Proyecto }
relationship OneToMany { Proyecto{elementos} to Elemento }
entity Imagen { url String required }
relationship OneToMany { Elemento{imagenes} to Imagen }
// DTOs y servicios dto Proyecto, Elemento, Imagen with mapstruct service Proyecto, Elemento, Imagen with serviceClass
// Paginación paginate Proyecto, Elemento, Imagen with pagination
jhipster 8.7.0 vue 3 jdk java 21 postgresql maven