java - annotation mapping using hibernate select data from database and display on jsp page but error is below -


severe: servlet.service() servlet [jsp] in context path [/konzern] threw exception [org.hibernate.hql.internal.ast.querysyntaxexception: attendance not mapped [from attendance a.status=:status]] root cause

org.hibernate.hql.internal.ast.querysyntaxexception: attendance not mapped @ org.hibernate.hql.internal.ast.util.sessionfactoryhelper.requireclasspersister(sessionfactoryhelper.java:189) 

it simple problem, forgot map entity 'attendance'

use @entity @table(name="table_name",catalog="dbname") on top of entity(pojo class) , add <mapping class="package.attendance"/> in hibernate configuration file. problem solved.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -