I'm learning Netbeans Platform and I'm in the process of following this tutorial:
I've reached the point of running the prototype but I'm getting the following warning in the output window:
warning: [options] bootstrap class path not set in conjunction with -source 1.6
warning: No processor claimed any of these annotations: javax.annotation.Generated
~/BDManager/CustomerViewer/src/org/shop/viewer/CustomerViewerTopComponent.java:53: warning: [unchecked] unchecked conversion
List<Employee> resultList = query.getResultList();
required: List<Employee>
found: List
3 warnings
My EntityManager is as follows:
EntityManager entityManager = Persistence.createEntityManagerFactory("CustomerLibraryPU").createEntityManager();
Query query = entityManager.createNamedQuery("Employee.findAll");
List<Employee> resultList = query.getResultList();
for (Employee c : resultList){
jTextArea1.append(c.getFirstName()+" "+c.getLastName()+"\n");
}
Referencing #4 in Designing the Interface in the tutorial, instead of the List being List<Customer>
, my List is List<Employee>
as the entity class is returning data from a table called employee in my database.
How do I get rid of this warning?