IntelliJ Java IDE
The moose likes Object Relational Mapping and the fly likes facing not a know entity type problem in spring...plzz help me... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "facing not a know entity type problem in spring...plzz help me... " Watch "facing not a know entity type problem in spring...plzz help me... " New topic
Author

facing not a know entity type problem in spring...plzz help me...

ksh agarwal
Greenhorn

Joined: Dec 15, 2011
Posts: 22
Hi,

I am facing a problem in spring jpa. I am not able to find what kind of error is this as I think my code is fine...



Service class is:



Dao class is:



Spring xml is:



persistence xml:



ANd entity class is:



I am getting this error:

Object: com.infosys.ingreen.middleware.entity.ElectricDeviceEntity@141fab6 is not a known entity type.


As I have searched out, many people faced this prob because of some compatibility issue, especially with eclipseLink. I am using spring 3 with toplink. What can be the cause of error? When I deleted the entity from table without spring, it worked...!!!
James Sutherland
Ranch Hand

Joined: Oct 01, 2007
Posts: 472
It is most likely some kind of class loader issue. You probably have the class loaded with two different class loaders.

If you just read, does it work? Check the difference in the class loaders from reading versus your app.

If you disable weaving does it work?

TopLink : EclipseLink : Book:Java Persistence : Blog:Java Persistence Performance
 
 
subject: facing not a know entity type problem in spring...plzz help me...
 
Threads others viewed
XML name space error in Spring data JPA hibernate applicationContext.xml
The matching wildcard is strict, but no declaration can be found for element 'context:annotation'
org.springframework.beans.factory.BeanCreationException
ClassCastException: Error in the WAR
Entity must be managed to call remove
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com