Hi, i'm new with Hibernate. I'm using Eclipse and Maven project, i've imported the last version of hibernatre core functionality throught pom.xml dependencies.
Anyway, i'm unable to correctly instantiate a session.
Quote:
import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.hibernate.cfg.Configuration;
import java.util.List;
import org.hibernate.Query;
public class PersonaUnitTest {
public static void main(String[] args) {
System.out.println("Persona Unit Test");
// Recupero la sessione: attenzione, questa operazione
// può essere gestita come un Singleton lungo tutta l’applicazione
Session session = SessionFactoryUtil.getSessionFactory().getCurrentSession();
on SessionFactoryUtil i get "cannot be resolved" error.. Why?