o hibernate faz todo o select mais nao chega a inserir…
a pagina q criei e redirecionada tudo certinho mais nao insere no banco de dados
Hibernate + mysql + eclipse + vraptor + jsp
vai o erro do console…
[list]
2009-12-02 14:53:37,689 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column element. Unique false. Nullable true.
2009-12-02 14:53:37,689 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column mapkey. Unique false. Nullable true.
2009-12-02 14:53:37,689 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column null. Unique false. Nullable true.
2009-12-02 14:53:37,689 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column null. Unique false. Nullable false.
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column null. Unique false. Nullable false.
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.CollectionBinder - Collection role: br.com.projeto.modelo.Funcionario.servicos
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property servicos
2009-12-02 14:53:37,691 [http-8080-2] INFO org.hibernate.cfg.AnnotationBinder - Binding entity from annotated class: br.com.projeto.modelo.Servico
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column DTYPE. Unique false. Nullable false.
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.EntityBinder - Import with entity name Servico
2009-12-02 14:53:37,691 [http-8080-2] INFO org.hibernate.cfg.annotations.EntityBinder - Bind entity br.com.projeto.modelo.Servico on table Servico
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing br.com.projeto.modelo.Servico property annotation
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing br.com.projeto.modelo.Servico field annotation
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of <a href="http://br.com.projeto.modelo.Servico.id">br.com.projeto.modelo.Servico.id</a>
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column id. Unique false. Nullable false.
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - id is an id
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for id
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property id
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Bind @Id on id
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of br.com.projeto.modelo.Servico.descricao
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column descricao. Unique false. Nullable true.
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property descricao with lazy=false
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for descricao
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property descricao
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of br.com.projeto.modelo.Servico.duracao
2009-12-02 14:53:37,691 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column duracao. Unique false. Nullable false.
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property duracao with lazy=false
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for duracao
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property duracao
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationBinder - Processing annotations of br.com.projeto.modelo.Servico.preco
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.Ejb3Column - Binding column preco. Unique false. Nullable false.
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - binding property preco with lazy=false
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.SimpleValueBinder - building SimpleValue for preco
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.annotations.PropertyBinder - Building property preco
2009-12-02 14:53:37,694 [http-8080-2] DEBUG org.hibernate.cfg.AnnotationConfiguration - processing fk mappings (<em>ToOne and JoinedSubclass)
2009-12-02 14:53:37,794 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - processing extends queue
2009-12-02 14:53:37,794 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - processing collection mappings
2009-12-02 14:53:37,794 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Second pass for collection: br.com.projeto.modelo.Funcionario.servicos
2009-12-02 14:53:37,794 [http-8080-2] DEBUG org.hibernate.cfg.annotations.CollectionBinder - Binding a OneToMany: br.com.projeto.modelo.Funcionario.servicos through an association table
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Mapped collection key: Funcionario_id, element: servicos_id
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Second pass for collection: br.com.projeto.modelo.Funcionario.agenda
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.annotations.CollectionBinder - Binding a OneToMany: br.com.projeto.modelo.Funcionario.agenda through an association table
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Mapped collection key: Funcionario_id, element: agenda_id
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Second pass for collection: br.com.projeto.modelo.Cliente.agendamento
2009-12-02 14:53:37,804 [http-8080-2] DEBUG org.hibernate.cfg.annotations.CollectionBinder - Binding a OneToMany: br.com.projeto.modelo.Cliente.agendamento through an association table
2009-12-02 14:53:37,806 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Mapped collection key: Cliente_id, element: agendamento_id
2009-12-02 14:53:37,806 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Second pass for collection: br.com.projeto.modelo.Estado.cidade
2009-12-02 14:53:37,806 [http-8080-2] DEBUG org.hibernate.cfg.annotations.CollectionBinder - Binding a OneToMany: br.com.projeto.modelo.Estado.cidade through a foreign key
2009-12-02 14:53:37,806 [http-8080-2] INFO org.hibernate.cfg.annotations.CollectionBinder - Mapping collection: br.com.projeto.modelo.Estado.cidade -> Cidade
2009-12-02 14:53:37,806 [http-8080-2] DEBUG org.hibernate.cfg.annotations.TableBinder - Retrieving property br.com.projeto.modelo.Cidade.estado
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.CollectionSecondPass - Mapped collection key: estado_id, one-to-many: br.com.projeto.modelo.Cidade
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - processing native query and ResultSetMapping mappings
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - processing association property references
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - processing foreign key constraints
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Funcionario
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Cliente
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Servico
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Estado
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Endereco
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Cliente
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Agenda
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Cidade
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Endereco
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Agenda
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Funcionario
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Funcionario
2009-12-02 14:53:37,809 [http-8080-2] DEBUG org.hibernate.cfg.Configuration - resolving reference to class: br.com.projeto.modelo.Servico
2009-12-02 14:53:37,811 [http-8080-2] INFO org.hibernate.cfg.AnnotationConfiguration - Hibernate Validator not found: ignoring
2009-12-02 14:53:37,824 [http-8080-2] INFO org.hibernate.connection.DriverManagerConnectionProvider - Using Hibernate built-in connection pool (not for production use!)
2009-12-02 14:53:37,824 [http-8080-2] INFO org.hibernate.connection.DriverManagerConnectionProvider - Hibernate connection pool size: 20
2009-12-02 14:53:37,824 [http-8080-2] INFO org.hibernate.connection.DriverManagerConnectionProvider - autocommit mode: false
2009-12-02 14:53:37,829 [http-8080-2] INFO org.hibernate.connection.DriverManagerConnectionProvider - using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost/xxx
2009-12-02 14:53:37,829 [http-8080-2] INFO org.hibernate.connection.DriverManagerConnectionProvider - connection properties: {user=root, password=root}
2009-12-02 14:53:37,831 [http-8080-2] DEBUG org.hibernate.connection.DriverManagerConnectionProvider - opening new JDBC connection
2009-12-02 14:53:38,154 [http-8080-2] DEBUG org.hibernate.connection.DriverManagerConnectionProvider - created connection to: jdbc:mysql://localhost/xxx, Isolation Level: 4
2009-12-02 14:53:38,154 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - RDBMS: MySQL, version: 5.1.40-community
2009-12-02 14:53:38,154 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.0.7 ( $Date: 2007-03-09 22:13:57 +0100 (Fri, 09 Mar 2007) $, $Revision: 6341 $ )
2009-12-02 14:53:38,182 [http-8080-2] INFO org.hibernate.dialect.Dialect - Using dialect: org.hibernate.dialect.MySQLInnoDBDialect
2009-12-02 14:53:38,187 [http-8080-2] INFO org.hibernate.transaction.TransactionFactoryFactory - Using default transaction strategy (direct JDBC transactions)
2009-12-02 14:53:38,192 [http-8080-2] INFO org.hibernate.transaction.TransactionManagerLookupFactory - No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
2009-12-02 14:53:38,192 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Automatic flush during beforeCompletion(): disabled
2009-12-02 14:53:38,192 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Automatic session close at end of transaction: disabled
2009-12-02 14:53:38,192 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch size: 15
2009-12-02 14:53:38,192 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - JDBC batch updates for versioned data: disabled
2009-12-02 14:53:38,195 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Scrollable result sets: enabled
2009-12-02 14:53:38,195 [http-8080-2] DEBUG org.hibernate.cfg.SettingsFactory - Wrap result sets: disabled
2009-12-02 14:53:38,195 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - JDBC3 getGeneratedKeys(): enabled
2009-12-02 14:53:38,195 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Connection release mode: auto
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Maximum outer join fetch depth: 2
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Default batch fetch size: 1
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Generate SQL with comments: disabled
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL updates by primary key: disabled
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Order SQL inserts for batching: disabled
2009-12-02 14:53:38,197 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
2009-12-02 14:53:38,200 [http-8080-2] INFO org.hibernate.hql.ast.ASTQueryTranslatorFactory - Using ASTQueryTranslatorFactory
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Query language substitutions: {}
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - JPA-QL strict compliance: disabled
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Second-level cache: enabled
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Query cache: disabled
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Optimize cache for minimal puts: disabled
2009-12-02 14:53:38,202 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Structured second-level cache entries: disabled
2009-12-02 14:53:38,225 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Echoing all SQL to stdout
2009-12-02 14:53:38,227 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Statistics: disabled
2009-12-02 14:53:38,227 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Deleted entity synthetic identifier rollback: disabled
2009-12-02 14:53:38,230 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Default entity-mode: pojo
2009-12-02 14:53:38,230 [http-8080-2] INFO org.hibernate.cfg.SettingsFactory - Named query checking : enabled
2009-12-02 14:53:38,302 [http-8080-2] INFO org.hibernate.impl.SessionFactoryImpl - building session factory
2009-12-02 14:53:38,305 [http-8080-2] DEBUG org.hibernate.impl.SessionFactoryImpl - Session factory constructed with filter configurations : {}
2009-12-02 14:53:38,305 [http-8080-2] DEBUG org.hibernate.impl.SessionFactoryImpl - instantiating session factory with properties: {java.vendor=Sun Microsystems Inc., sun.java.launcher=SUN_STANDARD, catalina.base=D:\Java\apache-tomcat-6.0.20, hibernate.connection.url=jdbc:mysql://localhost/xxx, sun.management.compiler=HotSpot Client Compiler, catalina.useNaming=true, os.name=Windows 7, sun.boot.class.path=C:\Program Files\Java\jre6\lib\resources.jar;C:\Program Files\Java\jre6\lib\rt.jar;C:\Program Files\Java\jre6\lib\sunrsasign.jar;C:\Program Files\Java\jre6\lib\jsse.jar;C:\Program Files\Java\jre6\lib\jce.jar;C:\Program Files\Java\jre6\lib\charsets.jar;C:\Program Files\Java\jre6\classes, sun.desktop=windows, java.vm.specification.vendor=Sun Microsystems Inc., java.runtime.version=1.6.0_14-b08, user.name=Guguuu, shared.loader=, tomcat.util.buf.StringCache.byte.enabled=true, user.language=pt, java.naming.factory.initial=org.apache.naming.java.javaURLContextFactory, sun.boot.library.path=C:\Program Files\Java\jre6\bin, java.version=1.6.0_14, user.timezone=America/Sao_Paulo, sun.arch.data.model=32, java.endorsed.dirs=D:\Java\apache-tomcat-6.0.20\endorsed, sun.cpu.isalist=pentium_pro+mmx pentium_pro pentium+mmx pentium i486 i386 i86, sun.jnu.encoding=Cp1252, <a href="http://file.encoding.pkg=sun.io">file.encoding.pkg=sun.io</a>, package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper.,sun.beans., file.separator=, java.specification.name=Java Platform API Specification, hibernate.format_sql=true, java.class.version=50.0, hibernate.c3po.min_size=5, user.country=BR, java.home=C:\Program Files\Java\jre6, java.vm.info=mixed mode, sharing, os.version=6.1, hibernate.c3po.idle_test_period=100, hibernate.c3po.max_size=20, path.separator=;, java.vm.version=14.0-b16, hibernate.connection.password=root, user.variant=, java.awt.printerjob=sun.awt.windows.WPrinterJob, sun.io.unicode.encoding=UnicodeLittle, awt.toolkit=sun.awt.windows.WToolkit, hibernate.connection.username=root, package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,org.apache.tomcat.,org.apache.jasper., java.naming.factory.url.pkgs=org.apache.naming, user.home=C:\Users\Guguuu, java.specification.vendor=Sun Microsystems Inc., java.library.path=C:\Program Files\Java\jre6\bin;.;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:/Program Files/Java/jre6/bin/client;C:/Program Files/Java/jre6/bin;C:\Program Files\Common Files\ArcSoft\Bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Java\jdk1.6.0_17\bin, java.vendor.url=http://java.sun.com/, hibernate.connection.driver_class=com.mysql.jdbc.Driver, java.vm.vendor=Sun Microsystems Inc., hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect, common.loader=${catalina.home}/lib,${catalina.home}/lib/</em>.jar, java.runtime.name=Java™ SE Runtime Environment, java.class.path=D:\Java\apache-tomcat-6.0.20\bin\bootstrap.jar, hibernate.bytecode.use_reflection_optimizer=false, java.vm.specification.name=Java Virtual Machine Specification, java.vm.specification.version=1.0, catalina.home=D:\Java\apache-tomcat-6.0.20, sun.cpu.endian=little, sun.os.patch.level=, java.io.tmpdir=C:\Users\Guguuu\AppData\Local\Temp, hibernate.c3po.timeout=180, java.vendor.url.bug=http://java.sun.com/cgi-bin/bugreport.cgi, server.loader=, os.arch=x86, java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment, java.ext.dirs=C:\Program Files\Java\jre6\lib\ext;C:\Windows\Sun\Java\lib\ext, user.dir=D:\Java\eclipse, line.separator=
, java.vm.name=Java HotSpot™ Client VM, wtp.deploy=D:\Java\apache-tomcat-6.0.20\wtpwebapps, file.encoding=Cp1252, java.specification.version=1.6, hibernate.show_sql=true}
[/list]
