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: @query
PostPosted: Sun May 15, 2011 2:55 pm 
Newbie

Joined: Sun May 15, 2011 2:49 pm
Posts: 1
Hi guis i'm new i need hel for a query

i have two table created by hibernate from java Date Object and type TIMESTAMP

now i need to retrive data with a query than match only the time part (HH:mm) of the the SQL column

the query i use is

@NamedQuery(name ="findAppuntamentiBySportelloDataSlot", query = "from Appuntamento a where (a.sportello.idSportello = :idSportello and a.dataApp = :d1 and a.timeStartApp = :ts )")
where ts and timeStartApp is with dd/MM/yyyy HH:mm:ss in the sql.

i need to retrieve all record which time part (HH:mm) of timeStartApp match the time part (HH:mm) of variable ts

some one can help me?

thank you

Pietro


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.