ejemplo basico de SqlResultSetMapping de JPA

"noadcaca" <[email protected]>
Newsgroups gmane.comp.java.javaspain
Message-ID <[email protected]>
Agradezco la ayuda con ejemplo completo de SqlResultSetMapping de JPA , requiero una consulta SELECT con dos o mas tablas ejemplo:
             
Query q = entityManager. createNativeQuer y(
                  "SELECT o.id, o.quantity, o.item " +
                  "FROM Order o,                   " +
                  "     Item i                     " +
                  "WHERE (o.item = i.id)           " +
                  "AND (i.name = 'widget')",Order. class);

Saludos cordiales
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.