History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: HIBSPA-12
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Karel Maesen
Reporter: Karel Maesen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Hibernate Spatial

Change visibility of static member variable SQL_TYPE_NAME to package in SDOGeometryType

Created: 13/Jul/08 11:23 PM   Updated: 15/Aug/08 12:41 PM
Component/s: Oracle10g
Affects Version/s: 1.0-M1
Fix Version/s: 1.0-M2


 Description  « Hide
This makes it easier to have several custom dialects with work properly with the SDOGeometryType.

See the discussion with Witteveen:


"I'm trying to use the hibernatespatial 1.1M, but im was running into problems:
- in 9i i could not insert NULL values into a geom field
- in oracle XE, fields were created from the wrong type

In order to fix this i needed to patch the file SDOGeometryType.java
and change the variable SQL_TYPE_NAME from private into package
accesability:
            Index: SDOGeometryType.java
            ===================================================================
            --- SDOGeometryType.java (revision 96)
            +++ SDOGeometryType.java (working copy)
            @@ -75,7 +75,7 @@

                    private static final int[] geometryTypes = new
int[] { Types.STRUCT };

            - private static String SQL_TYPE_NAME = "SDO_GEOMETRY";
            + static String SQL_TYPE_NAME = "SDO_GEOMETRY";

                    @Override
                    public void nullSafeSet(PreparedStatement st,
Object value, int index)"


 All   Comments   Change History   Subversion Commits   FishEye      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.