Hi!
I've got an issue in my project, perhaps somebody can lend me a hand. Currently I'm using Hibernate 5.1.0 with Postgresql 9.1 database.
The thing is that I've got several classes, whose identifiers are UUID fields (some of them generated by the database). I use hbm.xml files to map classes into the database. I don't know why, hibernate maps those UUID fields as Geometry data type. Those classes have Point or LineString values, but this has nothing to do with UUIDs.
Here it's one example:
Java class:
Code:
import java.util.UUID;
...
public class ParadaBus implements Serializable {
...
private UUID uuid;
...
}
Hbm file:
Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"Hibernate Mapping 3.0"
"http://hibernate.org/dtd/hibernate-mapping-3.0.dtd" >
<hibernate-mapping>
<class name="com.ingartek.cavwebapp.model.ParadaBus" table="PARADASBUS">
<id name="uuid" column="ID_PARADABUS" type="org.hibernate.type.PostgresUUIDType">
<generator class="assigned" />
</id>
...
</class>
</hibernate-mapping>
Am I doing something wrong?