Posted by jdeanquin
on August 23, 2007 at 7:47 AM PDT
This is the first of a series of short post ill do on diferecen between two of the most popular implementacion of the JPA API.
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.
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 to an Integer, but if i switch to TopLink it returns a Vector with one Integer object.
More difference to come.....