79371740

Date: 2025-01-20 15:13:07
Score: 1
Natty:
Report link

You are using a one way mapping here:

@ManyToOne
@JoinColumn(name="user_id")
private Users user;

But you are missing the mapping from user to Blog: the Users.java should have:(a user has many blogs)

@OneToMany(mappedby="user_id")
private List<Blog> blogs;
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Salah Eddine Khouadri