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

How to access named pipes using JavaScript in Firefox add-on? -

multithreading - OPAL (Open Phone Abstraction Library) Transport not terminated when reattaching thread? -

node.js - req param returns an empty array -