Pessoal, no meu codigo abaixo quando tento dar um commit o hibernate esta me passando a exceção :
[list]
org.springframework.transaction.TransactionSystemException: Could not commit Hibernate transaction; nested exception is org.hibernate.TransactionException: Transaction not successfully started
org.hibernate.TransactionException: Transaction not successfully started
[/list]
Ja olhei tudo e nao consegui encherga o problema , abaixo segue o codigo;
public void insert(AbstractGenericDTO dto) {
Session session = this.getFactorySession();
try {
session.beginTransaction();
session.save(dto);
// dar exception
session.getTransaction().commit();
}catch(TransactionException ex){
session.getTransaction().rollback();
ex.printStackTrace();
}
}