Bom dia Pessoal,
Estou iniciando no estudo do Hibernate, então resolvi fazer uma aplicação bem simples seguindo os passos de um tutorial disponível aqui mesmo no GUJ.
Estou executando a aplicação, e aparentemente não está ocorrendo erro de execução, porém os dados não estáo sendo inseridos na tabela.
Já pesquisei sobre o assundo, mas não encontrei nada até o momento.
Abaixo segue um trecho do Debug do Hibernate:
Se alguém puder ajudar eu agradeço.
Valeu!
2004-11-11 11:59:24,548 DEBUG hibernate.impl.SessionImpl -> flushing session
2004-11-11 11:59:24,548 DEBUG hibernate.impl.SessionImpl -> Flushing entities and processing referenced collections
2004-11-11 11:59:24,564 DEBUG hibernate.impl.SessionImpl -> Processing unreferenced collections
2004-11-11 11:59:24,564 DEBUG hibernate.impl.SessionImpl -> Scheduling collection removes/(re)creates/updates
2004-11-11 11:59:24,564 DEBUG hibernate.impl.SessionImpl -> Flushed: 1 insertions, 0 updates, 0 deletions to 1 objects
2004-11-11 11:59:24,564 DEBUG hibernate.impl.SessionImpl -> Flushed: 0 (re)creations, 0 updates, 0 removals to 0 collections
2004-11-11 11:59:24,564 DEBUG hibernate.impl.Printer -> listing entities:
2004-11-11 11:59:24,564 DEBUG hibernate.impl.Printer -> Amigo{nome=Carlos, celular=12345678, email=cvieira@gpnet.com.br, telefone=87654321, endereco=Rua Tal}
2004-11-11 11:59:24,564 DEBUG hibernate.impl.SessionImpl -> executing flush
2004-11-11 11:59:24,564 DEBUG hibernate.persister.EntityPersister -> Inserting entity: [Amigo#Carlos]
2004-11-11 11:59:24,564 DEBUG hibernate.impl.BatcherImpl -> about to open: 0 open PreparedStatements, 0 open ResultSets
2004-11-11 11:59:24,564 DEBUG hibernate.connection.DriverManagerConnectionProvider -> total checked-out connections: 0
2004-11-11 11:59:24,564 DEBUG hibernate.connection.DriverManagerConnectionProvider -> using pooled JDBC connection, pool size: 0
2004-11-11 11:59:24,564 DEBUG sf.hibernate.SQL -> insert into amigos (endereco, fone, cel, email, nome) values (?, ?, ?, ?, ?)
2004-11-11 11:59:24,580 DEBUG hibernate.impl.BatcherImpl -> preparing statement
2004-11-11 11:59:24,595 DEBUG hibernate.persister.EntityPersister -> Dehydrating entity: [Amigo#Carlos]
2004-11-11 11:59:24,595 DEBUG hibernate.type.StringType -> binding ‘Rua Tal’ to parameter: 1
2004-11-11 11:59:24,595 DEBUG hibernate.type.StringType -> binding ‘87654321’ to parameter: 2
2004-11-11 11:59:24,595 DEBUG hibernate.type.StringType -> binding ‘12345678’ to parameter: 3
2004-11-11 11:59:24,595 DEBUG hibernate.type.StringType -> binding ‘cvieira@gpnet.com.br’ to parameter: 4
2004-11-11 11:59:24,595 DEBUG hibernate.type.StringType -> binding ‘Carlos’ to parameter: 5
2004-11-11 11:59:24,595 DEBUG hibernate.impl.BatcherImpl -> Adding to batch
2004-11-11 11:59:24,595 DEBUG hibernate.impl.BatcherImpl -> Executing batch size: 1
2004-11-11 11:59:24,595 DEBUG hibernate.impl.BatcherImpl -> done closing: 0 open PreparedStatements, 0 open ResultSets
2004-11-11 11:59:24,595 DEBUG hibernate.impl.BatcherImpl -> closing statement
2004-11-11 11:59:24,595 DEBUG hibernate.impl.SessionImpl -> post flush
2004-11-11 11:59:24,595 DEBUG hibernate.impl.SessionImpl -> closing session
2004-11-11 11:59:24,595 DEBUG hibernate.impl.SessionImpl -> disconnecting session
2004-11-11 11:59:24,611 DEBUG hibernate.connection.DriverManagerConnectionProvider -> returning connection to pool, pool size: 1
2004-11-11 11:59:24,611 DEBUG hibernate.impl.SessionImpl -> transaction completion