java.lang.ClassCastException: java.les mathématiques.BigInteger ne peut pas être lancé à java.lang.Long

Je veux retourne le nombre de lignes à l'aide de sql natif. Mais la console me dit java.math.BigInteger cannot be cast to java.lang.Long.
Quel est le problème? C'est ma méthode:

public Long getNumRows(Integer id){

        Session session = null;

        session = this.sessionFactory.getCurrentSession();
        Query query = session
                .createSQLQuery("SELECT COUNT(*) FROM controllnews WHERE news_id="
                        + id + ";");
        List firstResult = query.list();

        return (Long) firstResult.get(0);


    }

OriginalL'auteur John Smith | 2013-08-13