Hello,

J'ai un autre problème depuis un moment...

Voici mon bean entity:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
 
import org.postgis.Point;
...
private Point point;
...
@Type(type = "org.postgis.Point")
@Column(name = "point", columnDefinition = "geometry")
public Point getPoint() {
	return point;
}
 
public void setPoint(Point point) {
	this.point = point;
}
Et voici le code de mon bean session:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
 
import org.postgis.Point;
...
LocationLog ll = ...
...
ll.setPoint(new Point(45.521984,5.427589));
em.flush();
...
Le déploiement s'exécute correctement, mais j'ai une erreur à l’exécution (sur la ligne du flush)
GRAVE: org.hibernate.exception.GenericJDBCException: could not update: [business.entity.LocationLog#8535]
...
Caused by: org.postgresql.util.PSQLException: ERREUR: parse error - invalid geometry
Indice*: You must specify a valid OGC WKT geometry type such as POINT, LINESTRING or POLYGON
...
Quel est le problème? Une idée?
Merci d'avance...