-->
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.  [ 2 posts ] 
Author Message
 Post subject: simple query question
PostPosted: Wed Sep 06, 2006 8:45 am 
Newbie

Joined: Wed Sep 06, 2006 8:34 am
Posts: 2
hi,

how can i get null values from a table.I have a query like this:
String srvTypeID = "1";
String query = "FROM Service WHERE SRV_GROUP LIKE'"+srvTypeID+"%' ORDER BY SRV_GROUP,SRV_NO";
List result = session.createQuery(query).list();

i got a error like this:

WARN - SQL Error: 17026, SQLState: null
ERROR - Numeric Overflow
Exception in thread "main" java.lang.RuntimeException: could not execute query
at de.gloegl.road2hibernate.EventManager.getServiceInfoList(EventManager.java:90)
at de.gloegl.road2hibernate.EventManager.main(EventManager.java:56)


Top
 Profile  
 
 Post subject: Re: simple query question
PostPosted: Wed Sep 06, 2006 11:36 am 
Regular
Regular

Joined: Mon Jun 13, 2005 12:38 pm
Posts: 56
Location: Austin, TX
Are SRV_GROUP and SRV_NO the names of the columns in the table or are they the names of the getters in your service object? Those should correspond to getter/setter in your Service object.

_________________
Michael Masters


Don't forget to rate.


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

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.