Posts by gfinotti • 101 points
2 posts
-
0
votes3
answers210
viewsA: How to create tables when starting Sisitema with JSF and JPA?
Set the value of the property "Hibernate.hbm2ddl.auto" as "update". Thus, any change in JPA entities will be reflected in the database when the server starts the application. Follow example using…
-
0
votes3
answers143
viewsA: How to enter records when starting the JSF+JPA system?
Another option is to implement a Servletcontextlistener and insert the records into the contextInitialized method, which is invoked when the server initializes the application context. This way you…