I'm working on a java application and I'm saving via hibernate an object which hierarchically contains another object with a PGpoint field.
I'm trying ways to make hibernate save the PGpoint in a postgres+postgis spatial representation, but nothing works.
I've tried leaving without specific annotations but i've got errors (I think building the correct query). I've tried writing a custom AttributeConverter but I failed doing so, I don't even know what type of Point should I use, or how to properly do that. I've tried using the geolatte postgisconverter, but i've got errors also.
What should I do?