mercredi 5 août 2015

Hibernate gives 'table is not mapped' Exception


I configured package which contains pojo entity class which defined tables.

However, I see errors from below query

public interface TargetRepository extends CrudRepository<TargetEntity, String> {
    @Query("SELECT a, b FROM target_table")
    public List<Object> selectTargets();
}

org.hibernate.hql.internal.ast.QuerySyntaxException: target_table is not mapped

How can I fix it?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire