From: Peter A. <d9...@na...> - 2002-08-05 08:42:28
|
Hi, I've tried the latest hibernate. Works great! I'm not sure what you think, but I have two thoughts about features I'd like to see in an OR mapping tool. 1. Be able to prefetch a set of relations. IE when I have a customer which has an adress and a set of orders, I would like at querytime be able to tell the tool to fetch all theese with one query (with joins). As I understand it currently I can tell in the mapping file that adress is a dependant object, but the problem is that then adress always gets loaded from the db when customer is. I rather would see that there was a way to specify this at query time. 2. Related to 1, it would also be nice if the sort-order of a collection could be specified at runtime in some way. So if I've already queried for a customer and call getOrders on it I would like to be able to choose how the orders are sorted when fetched. This at runtime too because I might want them sorted differently on different occations. Not sure if this makes sense in hibernate, but anyway it's my thoughts :) /Peter |