So here is the offending piece of code:

Session session = getCurrentSession();
Query query = session.createQuery("select count(g.id) from RoleImpl as g");
return ((Integer) query.uniqueResult()).intValue();


The org.hibernate.Query.uniqueResult() returns an object, which appears to be 
coming across as a Long.  

I am using EJB3 which uses a newer hibernate, is that possibly the problem?

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3949176#3949176

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3949176


_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to