-->
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: list with two different objects?
PostPosted: Sat Nov 05, 2005 6:31 pm 
Hi, I want to fetch a list with two different objects but I cant figure out how to do this.

The list is supposed to contain the four most recent posts from the two tables which means that it could be either two from each of them or three from one and one from the other or four from the same table.

Hope anyone can give me a hint on how to do this.


Top
  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 10:13 am 
Contributor
Contributor

Joined: Thu May 12, 2005 9:45 am
Posts: 593
Location: nhibernate.org
What is the relationship between these two different objects?
If there are none, it is impossible AFAIK...

You may select the four lastest of each Types and then merge them to keep only the four lastest of both (throwing the four others).

_________________
Pierre Henri Kuaté.
Get NHibernate in Action Now!


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.