This content has been marked as final.
Show 1 reply
-
1. Re: Fast Lane Reader / EJB3
ronaldmathies Jul 12, 2005 10:39 AM (in response to kostaboss)At the bottom of the following URL there is something about fast lane reader:
http://blog.hibernate.org/cgi-bin/blosxom.cgi/Gavin%20King/ejb3part1.html?seemore=y@Stateless public class AuctionImpl implements Auction { ... public List<ItemSummary> getItemSummaries() { String query = "select new " + "ItemSummary(item.shortDescription, item.id, max(bid.amount)) " + "from Item item left outer join item.bids bid"; return (List<ItemSummary>) em.createQuery(query) .listResults(); } }
You just have to make shure that the ItemSummary class in this example has the appropriate constructor.