View Full Version : warning:[unchecked] unchecked conversion

April 24th, 2009, 03:55 PM
Hi all,

I am getting following warning :

warning:[unchecked] unchecked conversion
[javac] required:java.util.List<edu.fullerton.cs476s09.espressobar.jpa.espressobar _milk>
return query.getResultList();

What may the problem and probable solution.
I am using following code:

public class OrderBean implements Order {
* The entity manager object, injected by the container
private EntityManager manager;
public List<espressobar_milk> listMilk() {
Query query = manager.createQuery("SELECT m FROM espressobar_milk m");
return query.getResultList();

Thanks in advance for any suggestion.