These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Converting sdo_geometry to wkt and back again on the fly
PostPosted: Mon Jun 30, 2008 9:25 pm 
Newbie

Joined: Mon Jun 30, 2008 9:08 pm
Posts: 1
Hey people. I have been using NHibernate now for about a year and have manage to solve all my problems by reading the API and googling. I have come to a point now where I am a bit lost, and I can't seem to find an answer. This might be as much a Hibernate question as an NHIbernate question.

So my problem is this: I have to persist some sdo_geometry records in Oracle. I get new records via wkt_geometry (which is a big string), and i use an Oracle function to convert them into geometry objects. i use another function to covert geomtries back into wkt. The application layer needs to use these objects as wkt (well known text), and the database layer needs them as sdo_geometries. I also need to use Oracle functions to do the conversion.

At first i thought of making a custom type, but after playing around with it, it appeared that it was taking the data from oracle before I could apply the Oracle function to it.

I then started looking at including some SQL to load this to a string, but I also have to use different SQL to update and insert it, and I'm not sure how to do that on a per record basis (with in the XML mapping doc that is).

I would greatly appriecate any help in this matter.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.