The trouble is that the typecast really applies to the /elements/ of the collection,
not the collection itself. So to me it looks wierd to cast order.items.
Did not think of it that way - and then NARROW makes more sense....
/max
Max Rydahl Andersen wrote:
The "(FactoryItem) order.items" is java-like and understandable right away
by 90% of current hibernate users....btw. should it not be (FactoryItem) (order.items) if one is
to follow the normal precedence orders for casts ?
The CAST syntax is uglier, but has a more query-languish look - and will probably be
understood by 70-80% of the users....the precedence order question is also valid here...
The NARROW stuff is the less understandable from the current hibernate user base ;)
It is something that smells of big ORM query languages and J2EE/Corba calls, but it
is probably also most similar to that ....
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel
