79193843

Date: 2024-11-15 20:24:12
Score: 1
Natty:
Report link

The reference should be by the name of the entity, not the original name of the table in the DB. So this shall be:

@ManyToOne
@JoinColumn(name="cart_id", nullable=false)
private CartEntity cart;

And the same shall be applied to the item entity.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Mohamed Essam