Hello I just experienced this in the following version:
in my build.gradle:
compile("org.hibernate:hibernate-spatial:5.2.10.Final")
In my case I was using WGS 84, when doing a findAll in JPA I get the Geometry object with the SRID of 0
--8307 is WGS 84 INSERT INTO USER_SDO_GEOM_METADATA (TABLE_NAME, COLUMN_NAME, DIMINFO, SRID) VALUES ('TEST_GEO', 'CUST_GEO_LOCATION', SDO_DIM_ARRAY (SDO_DIM_ELEMENT('LONG', -180.0, 180.0, 0.5), SDO_DIM_ELEMENT('LAT', -90.0, 90.0, 0.5)), 8307);
When saving I got:
ORA-13365: Ebenen-SRID stimmt nicht mit Geometrie-SRID überein
The srid is simply ignored in the generated insert statement?.
As soon as I have hibernate spatial 5.2.11 I will retest again.
Thanks.
~M