its giving you an error because something is flawed in your when you call List<Donors> resultList = query.getResultList(); the compiler says it requires java.util.List<donorinfo.Donors> but it is...