Bonjour,
J'ai ma base de donnée Postgresql , et j'ai ajouté dans une table ObjetSpatial une colonne "coord" de type point (dans cette colonne en fait je veux stocker la latitude et la longitude ), puisque je fais l'accès aux données avec hibernate j'ai associé à cette colonne un objet de type PGpoint, mais il y a eu un erreur pour la création de la session et voici l'erreur , c'est attendu d'avoir un type bytea
org.hibernate.HibernateException:
Wrong column type: cord, expected: bytea
at org.hibernate.mapping.Table.validateColumns(Table.java:261)
at org.hibernate.cfg.Configuration.validateSchema(Configuration.java:1083)
at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:116)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:317)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:859)
Je suis en attente de vos explication, je me bloque là dessus et c'est la première fois que je manipule des données géographique dans une base et je veux utiliser ce que m'offre postgres en tant que type géographique comme (point, polygon)
Merci pour votre aide