Posts by Paulo Cardoso • 41 points
2 posts
-
1
votes1
answer496
viewsA: problems running createNativeQuery
By exception, you are trying to run INSERT and have no transaction. Try something like: public void InserirTabelaUsuarioGrupo(Long id){ EntityTransaction trx = this.manager.getTransaction(); Query…
-
3
votes3
answers143
viewsA: How to enter records when starting the JSF+JPA system?
You can use the @Postconstruct annotation in your managedBean method. This annotation will cause the method to be invoked after your mBean is instantiated. Example: @ManagedBean @RequestScoped…