as you can see in this tutorial http://www.vogella.com/tutorials/JavaPersistenceAPI/article.html when you declare an entity like Person then you must add it in persistence.xml likes <class>de.vogella.jpa.eclipselink.model.Person</class>
or you can define a mapping file and put your classes in there, but when you use hibernate as you can see here http://www.alexecollins.com/tutorial-hibernate-jpa-part-1/ after entity declaration you don't need to add anything in persistence.xml as class. or maybe I misundrestood.
I want eclipe link does the same way that hibernate does, means I should use eclipse link and I don,t want to declare class or use any mapping file, does it possible or it doesn't?
thanks