Skip to main content

Blog Archive for jdeanquin during August 2007

In a project I'm working, we are moving from using Hibernate to Toplink, so I thought that i just had to change the provider and everything would work perfect, but.... the Following code it is used to call a native query. em.createNativeQuery("MyQry"); The query return a single integer. When calling the method getSingleResult() on the query object If I use Hibernate I can cast the result object...