-->
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: HibernateUtils
PostPosted: Sat Sep 18, 2010 7:21 am 
Newbie

Joined: Sat Sep 18, 2010 7:16 am
Posts: 1
I have come accross this code in one of article.

results = HibernateUtils.find(query,
new Object[] {name + "%"},
new Type [] {Hibernate.STRING});


My question is what is HibernateUtils? I do not find in Hibernate API?


Top
 Profile  
 
 Post subject: Re: HibernateUtils
PostPosted: Mon Sep 20, 2010 8:25 am 
Regular
Regular

Joined: Sun Feb 14, 2010 3:29 pm
Posts: 58
Location: USA
HibernateUtils is not part of the Hibernate api, and it should be provided by your article. It's likely just class that provide Hibernate setup and utility methods like you've just seen.

If you want to understand how Hibernate find object or execute query, read their ref manual, and their api doc. (see org.hibernate.Session)

_________________
Zemian Deng
------------
Need a Java Scheduler? Try
http://bitbucket.org/timemachine/scheduler


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.