-->
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: oracle spatial abfrage
PostPosted: Thu Jun 02, 2005 7:12 am 
Newbie

Joined: Fri May 27, 2005 2:40 pm
Posts: 15
Ich habe versucht, mit Hibernate durch einen createSQLQuery() eine geografische Abfrage an eine Oracle Datenbank zu senden. Leider bekomme ich keine Ergebnisse. Hier der Code:

String query="SELECT {NSIL_CORE.*} FROM NSIL_CORE WHERE " +
"SDO_RELATE({NSIL_CORE}.IGEOLO_SDO, mdsys.sdo_geometry(2003,8307, NULL, mdsys.sdo_elem_info_array(1,1003,1), " +
"mdsys.sdo_ordinate_array(0.0,100.0 , 0.0,0.0 , 100.0,0.0 , 100.0,100.0, 0.0,100.0))," +
" 'mask=INSIDE+COVEREDBY querytype=WINDOW') = 'TRUE'";

List result=session.createSQLQuery(query).addEntity("NSIL_CORE", Nsil_core.class).list();

Fehlen vielleicht irgendwo geschweifte Klammern?
Vielen Dank für Hilfe!


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.