Posts by tomrlh • 126 points
1 post
-
1
votes1
answer533
viewsA: Do I need to include classes mapped in persistence.xml? Java-Eclipse-Maven-Hibernate-H2database
You can map entities in two ways: 1 with the tag class, as you mentioned: <class>caminho.inteiro.do.pacote.NomeDaEntidade</class> 2 with the annotation @Entity: @Entity public class…