Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Tim Cooke
Campbell Ritchie
paul wheaton
Ron McLeod
Devaka Cooray
Sheriffs:
Jeanne Boyarsky
Liutauras Vilda
Paul Clapham
Saloon Keepers:
Tim Holloway
Carey Brown
Piet Souris
Bartenders:
Forum:
Object Relational Mapping
I am getting org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity:
Pattamuthu Aru
Greenhorn
Posts: 13
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
I am, getting
javax.faces.el.EvaluationException: org.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.grg.dell.register.model.Claims;
Here is my applicationContext file
<?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:context="http://www.springframework.org/schema/context" xmlns:aop="http://www.springframework.org/schema/aop" xsi:schemaLocation=" http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd"> <!-- ========= GENERAL DEFINITIONS ========= --> <bean id="dataSource" class="org.springframework.jdbc.datasource.DriverManagerDataSource"> <property name="driverClassName"> <value>com.microsoft.sqlserver.jdbc.SQLServerDriver</value> </property> <property name="url"> <value>jdbc:sqlserver://192.168.1.185:1433;databaseName=lportal_dell</value> </property> <property name="username"> <value>sa</value> </property> <property name="password"> <value>sa123</value> </property> </bean> <!-- Hibernate SessionFactory --> <bean id="sessionFactory" class="org.springframework.orm.hibernate3.annotation.AnnotationSessionFactoryBean"> <property name="dataSource"> <ref local="dataSource"/> </property> <property name="annotatedClasses"> <list> <value>com.grg.dell.register.model.Claims</value> </list> </property> <property name="hibernateProperties"> <props> <prop key="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prop> </props> </property> </bean> <!-- Hibernate transaction manager--> <bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"> <property name="sessionFactory"> <ref local="sessionFactory"/> </property> </bean> <!--Dao (Data Access Object) for application. --> <bean id="registerDao" class="com.grg.dell.register.dao.impl.ClaimRegistrationImpl"> <property name="sessionFactory"> <ref local="sessionFactory"/> </property> </bean> <!--Manager for Property application.--> <bean id="registerFacade" class="com.grg.dell.register.facade.ClaimRegistrationFacade"> <property name="registerDao"> <ref local="registerDao"/> </property> </bean> <!--Wraps manager in order to support transactions.--> <bean id="regFacade" class="org.springframework.transaction.interceptor.TransactionProxyFactoryBean"> <property name="transactionManager"> <ref local="transactionManager"/> </property> <property name="target"> <ref local="registerFacade"/> </property> <property name="transactionAttributes"> <props> <prop key="save*">PROPAGATION_REQUIRED</prop> <prop key="register*">PROPAGATION_REQUIRED</prop> <prop key="remove*">PROPAGATION_REQUIRED</prop> <prop key="*">PROPAGATION_REQUIRED,readOnly</prop> </props> </property> </bean> </beans>
and here is my Enitity
import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.Table; @Entity @Table(name="claims") public class Claims implements Serializable{ @Id @GeneratedValue @Column(name ="claim_id") private long claimId;
Please help me
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
?
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Dependency injection problem
HibernateDaoSupport and Transaction
Problem Mapping view in hibernate
Spring And Hibernate (LocalSessionFactoryBean)
Initialization of bean failed;
More...