-->
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: How to get a column name
PostPosted: Thu Oct 28, 2004 12:42 pm 
Newbie

Joined: Tue Oct 19, 2004 8:34 am
Posts: 5
Hi together,

probably I'm doing something very wrong, but I have no guess how to do better. I want to have a like Expression on a java Integer. This brings up an hibernate ClassCastException...
While doing an sql query it's perfectly fine to have a like operation on a DB int column.
So my next guess was to do an SQL Expression, but then I need to get the column name for my java property... but I don't see a way to do this in Hibernate 2.1.13....
Any ideas???
Thanks in advance
Mark

PS: Sorry if it's an obvious thing, but I didn't find any information on this


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.