Hello,
Im trying to mapping the postgresql type Point into entity.
I have in create table: LOCALIZATION POINT NOT NULL,
and in my entity Im trying to put for example:
Code:
@NotNull
@Column(name = "LOCALIZATION", nullable = false)
private PGpoint localization;
but still the same error was shown:
Code:
Caused by: org.hibernate.HibernateException: Wrong column type in public.user for column LOCALIZATION. Found: point, expected: bytea
What type should I put into my entity? I tried with Point2D, Point with no success.
Please, help me with this.
Regards,
Dan