This is my Sender entity
@Entity public class Sender { @Id @GeneratedValue(strategy = GenerationType.AUTO) private long senderId; ... ... p
Adding to #Hedley comment to fix it globally you can add a line in SQLDialect constructor. In my project it was like:
public PostgreSQLDialect() { super(); registerHibernateType(Types.BIGINT, StandardBasicTypes.LONG.getName()); }