I am new to Hibernate. While creating a small app using it I got following exception:
Exception in thread \"main\" java.lang.IllegalArgumentException: Unknown entit
Depends bit about project structure, but likely by adding following to persistence.xml directly under persistence-unit element.
model.Students
model.Address
Exactly like this:
org.hibernate.ejb.HibernatePersistence
students
model.Students
model.Address
false
By the way, why do you configure properties like hibernate.dialect in both persistence.xml and hibernate.cfg.xml?