IllegalArgumentException « Entity « JPA Q&A





1. How to get rid of 'java.lang.IllegalArgumentException: Unknown entity' while running a simple hibernate app?    stackoverflow.com

I am new to Hibernate. While creating a small app using it I got following exception: Exception in thread "main" java.lang.IllegalArgumentException: Unknown entity:
model.Students at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:223) at controller.Main.main(Main.java:50) Can ...

2. JPA: java.lang.IllegalArgumentException: Unknown entity    forum.hibernate.org

persistence> org.hibernate.ejb.HibernatePersistence ...