Answers for "sql request with jpa hiberna"

SQL
0

sql request with jpa hiberna

Query q = em.createNativeQuery("SELECT a.firstname, a.lastname FROM Author a");
List<Object[]> authors = q.getResultList();
 
for (Object[] a : authors) {
    System.out.println("Author "
            + a[0]
            + " "
            + a[1]);
}
Posted by: Guest on October-19-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language