This week's book giveaway is in the
General Computing
forum.
We're giving away four copies of
Arduino in Action
and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See
this thread
for details.
A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
Win a copy of
Arduino in Action
this week in the
General Computing
forum!
A special promo:
Enter your blog post or vote on a blogger to be featured in an upcoming Journal
JavaRanch
»
Java Forums
»
Databases
»
Object Relational Mapping
Author
HibernateListModel returns null object
Grace Russo
Ranch Hand
Joined: Nov 08, 2010
Posts: 62
posted
Aug 05, 2011 08:10:52
0
How could I make sure the list returned does not contain null objects ?
Any criteria I could specify ?
final IModel<List<TeamDetail>> model = new HibernateListModel<TeamDetail>( TeamDetail.class, new CriteriaBuilder() { @Override public void build(final Criteria criteria) { criteria.add(Restrictions.eq("teamDetailId.ui", ui)); criteria.add(Restrictions.eq("teamDetailId.teamId", teamId)); } });
I agree. Here's the link:
http://aspose.com/file-tools
subject: HibernateListModel returns null object
Similar Threads
SQL to HSQL - DetachedCriteria
Call user define function in hibernate.
how to implement 'or' condition in hibernet
isNotNull & isNotEmpty Hibernate
Querying on Child Objects
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter