I am trying to get a data from a database using a query and populate it into a list view.
Instead of getting a string value, I am getting "[Ljava.lang.Object;@64bba873". I have tried to cast it, but it did not work
query1 = em.createQuery("Select e.name, y.surname from REQUEST e ,REQUEST y"); List<String> list = query1.getResultList(); record1.getItems().addAll(list);
record1 is my listview,
Could anyone help me to solve that out??