I create a generic DataAccessObject and try to save a data in my database
HibernateDAO.java
I use
JSF and Hibernate in my application.
This code works perfect when i call him inside netbeans like a desktop app
but when i try to use him inside a JSF app, he give me a error
this is the ManagedBean that i use to save data through xhtml file
GravaCidade.java
why this don't work in JSF app?
cadastro_cidade.xhtml