-->
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.  [ 3 posts ] 
Author Message
 Post subject: How can I get de system date of the data base with Hibernat?
PostPosted: Wed Jun 23, 2004 3:14 pm 
Newbie

Joined: Fri Apr 16, 2004 7:04 am
Posts: 6
Location: Brazil
in SQL i do: SELECT NOW() AS DATE

and HQL???

_________________
Carlos Barretto


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 3:38 pm 
Newbie

Joined: Wed Jun 23, 2004 3:20 pm
Posts: 2
You can get the JDBC connection from session ...

ResultSet rs=session.connection().createStatement().executeQuery("SELECT NOW() AS DATE");


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 4:20 pm 
Newbie

Joined: Fri Apr 16, 2004 7:04 am
Posts: 6
Location: Brazil
ok but I want to know if exists a HQL consult for it!

_________________
Carlos Barretto


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.