Skip to main content

Diference Between Hibernate and Toplink

Posted by jdeanquin on August 23, 2007 at 7:47 AM PDT

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.....

Related Topics >>