Skip to content
Advertisement

PSQLException: ERROR: operator does not exist: bigint = character varying

I am trying to do a LEFT JOIN FETCH to load a lazy loaded some data, but I am getting the following error.

JavaScript

I have searched everywhere online to see what I am doing incorrectly, but I don’t see what I am doing differently (other than my id not being a primitive type).

Here is what I have

JavaScript

Key

JavaScript

Repo

JavaScript

DB

JavaScript

I have also tried message around with the query and the passed in type, e.g.

JavaScript

But none of these work as well (different errors)

What am I doing wrong?

Advertisement

Answer

In the end I had to do two things:

  • replaced the complex key type of FooId with just a String
  • replaced my JoinTable mapping with JoinColumn, for my OneToMany relation of some fields in my FooDefinition class
User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement