Forums Register Login

List of entity types registered in hibernate

+Pie Number of slices to send: Send
Hi,
Is it possible to get the list of entity classes registered in hibernate configuration?
My problem is, I am getting Unknown Entity error while doing any operation in hibernate session.
I've ensured that all the process of registering entities is properly done. Also when i give incorrect path of any entity in persistence.xml it
throws an error for that entity saying Class Not Found, which means hibernate is able to locate my entity beans properly.

Also I tried to fetch the class signature with instance.getClass().getName() method which is coming same as that i have mentioned in persistence.xml

Can anyone please help me on this?
+Pie Number of slices to send: Send
Please UseOneThreadPerQuestion. Duplicate of this.
Eat that pie! EAT IT! Now read this tiny ad. READ IT!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


Reply locked
This thread has been viewed 3294 times.
Similar Threads
Relationship b/w app server and Database
Question about EntityManagerFactory and EntityManager
Distribution JPA entities - enhancement etc.
java.lang.IllegalArgumentException: Unknown entity
JBOSS CACHE second level caching for named query cache
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:50:04.