Questions tagged [spring-boot-jpa]
96 questions
0
votes
1 answer
@ManyToMany collection not populating with spring-boot-starter-data-jpa
I'm getting a problem with the @ManyToMany collections not populating on data load. I've tried FetchType.LAZY and FetchType.EAGER with no changes in the result.
When I am printing the User Object the collection Object of Roles is empty.
User…

Santosh_17
- 23
- 5
0
votes
2 answers
Unable to add CORS support to spring boot data jpa
I am getting following exception when trying to access my localhost service.
2019-01-22 13:57:27 ERROR o.a.c.c.C.[.[.[.[dispatcherServlet] - Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request…

Ashish
- 14,295
- 21
- 82
- 127
-1
votes
1 answer
Spring Boot Jpa relationship with part of Embeded Id
I am creating entity relationships in Spring Boot data JPA. Since those tables being legacy I am not able to modify or add columns. Issue is I am getting error if point part of embedded Id.
My entity classes looks like below:
Class Customer {
…

Lolly
- 34,250
- 42
- 115
- 150
-1
votes
1 answer
How do I tell MySQL to reset the primary key incriment when primary key reach the top?
I'm storing A LOT of data every millisecond in a database. I'm told to do that.
And it's OK if the primary key reaches to the top, then it's OK to reset it and overwrite the current rows in the database.
Is it possible to set the primary key in…

euraad
- 2,467
- 5
- 30
- 51
-1
votes
1 answer
Records in the database do not update
Here is a part of Simulation entity:
@Entity
@Table(name = "Simulation")
@Getter
@Setter
@NoArgsConstructor
public class Simulation extends BaseEntity
{
@Column(name = "name", length = 25, unique = true)
private String name;
@Column(name…

Oskar
- 379
- 4
- 21
-1
votes
1 answer
Can someone explain orphanRemoval in Hibernate?
My question is not how work "mappedBy". I know, just indicates the owner of the relation. My question is how orphanRemoval works.
And in my case I don’t use the indication mappedBy at all.
I have the following entities:
@Entity
@Table(name =…

FreeOnGoo
- 868
- 1
- 8
- 26