Posts by Thiago Suchorski • 1 point
3 posts
-
-1
votes1
answer46
viewsA: How to make a Onetoone in JPA with composite primary key?
Solved spring.jpa.hibernate.ddl-auto=create-drop @OneToOne(cascade = CascadeType.ALL, fetch = FetchType.EAGER) @MapsId("userId") private User user;…
-
-1
votes1
answer46
viewsQ: How to make a Onetoone in JPA with composite primary key?
How to put a User inside Serveruser? I tried it like this. It creates the database, but it keeps throwing me an exception And also he is creating a new user_idd field, would like to use the user_id…
-
0
votes1
answer27
viewsQ: How to do @Autowired on a List<Meucomponente>?
Good morning, I have a component that has injected services. This component is of the 'prototype' scope and is running infinitely. I need to run X components (passed via argument) of these and why I…