Yes, unfortunately EJB 3.0 Persistence did not generify their collections, and the Query.getResultList() returns a List and not a List<Object>. You can't cast your way out of a compiler warning (without other settings sent to the compiler).
So (as of Nov 2007),
This is something that EJB Persistence needs to fix. It likely won't happen until mid 2008. Make a note of these in your code so you can go clean them up later!
Bill Shirley - bshirley - frazerbilt.com
if (Posts < 30) you.read( JavaRanchFAQ);
Forget Steve. Look at this tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database