How do I use the queryForAll () method of OrmLite on Android?

0

I have created an entity, but at the time of doing the foreach it indicates that they are not the required types

 Dao dao;
        try {
            dao = getHelper().getPersonaDao();
            for ( Persona persona:dao.queryForAll()){
                //Log.d("bnx","name= "+persona.getName);
            }
        } catch (SQLException e){
            Log.d("bnx","error");
        }



    Incompatible types.
    Required: Object
    Found: Persona
    
asked by goku venz 22.05.2018 в 15:11
source

0 answers