79144945

Date: 2024-10-31 13:42:24
Score: 3
Natty:
Report link

So it appears that the issue was not with the SQL. Instead, it was with the Java POJO that I had created as an @Entity. I was using @OneToOne for the foreign key reference and even though all the names were the same it was saying it could not find the column. Changing the @OneToOne to just an @Column fixed the error. The database still holds the key relationship. Everything I read stated what I had should work but it did not. At least I am able to move forward.

Reasons:
  • No code block (0.5):
  • User mentioned (1): @Entity
  • User mentioned (0): @OneToOne
  • User mentioned (0): @OneToOne
  • User mentioned (0): @Column
  • Self-answer (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: Patrick Aquilone