-->
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: My own preparedStatement doesnt get prepared...
PostPosted: Fri Sep 10, 2004 4:45 am 
Newbie

Joined: Fri Aug 13, 2004 6:38 am
Posts: 4
Hibernate version: 2.1.6

Maybe its a question I should rather post at the jdbc-Forum at java.sun.com but it also involves how hibernate works with preparedStatemtns, so here we go:

Writing my own jdbc-Driver for sending sql statements over xml-rpc to my server I also have to implement the preparedStatement-Interface from JDBC.

So when Hibernate prepares such a statement it also puts in Questionmarks to where later on real values should be, right?
EXAMPLE:
Hibernate: select bundesland0_.BLANDNR as BLANDNR0_, bundesland0_.BUNDESLAND as BUNDESLAND0_, bundesland0_.LINKNR as LINKNR0_ from GH_BLAND bundesland0_ where bundesland0_.BLANDNR=?

But, isnt Hibernate responsible for putting in those values before the statement is commited? In my implementation all the setXXX-Methods throw an exception and still my prog sends happily the unfinished statements to the server.

So am I forgetting to implement something here or where lies my problem?

Thanks in advance
MVeeck


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.