1. java
  2. android
  3. c#
  4. .net
  5. javascript
  6. php
  7. jquery
  8. html
  9. sql

Como resolver este erro?

enter code here
run:
Nov 18, 2014 8:48:16 PM org.hibernate.cfg.annotations.Version <clinit>
Informações: Hibernate Annotations 3.3.1.GA
Nov 18, 2014 8:48:16 PM org.hibernate.cfg.Environment <clinit>
Informações: Hibernate 3.2.5
Nov 18, 2014 8:48:16 PM org.hibernate.cfg.Environment <clinit>
Informações: hibernate.properties not found
Nov 18, 2014 8:48:17 PM org.hibernate.cfg.Environment buildBytecodeProvider
Informações: Bytecode provider name : cglib
Nov 18, 2014 8:48:17 PM org.hibernate.cfg.Environment <clinit>
Informações: using JDK 1.4 java.sql.Timestamp handling
Nov 18, 2014 8:48:17 PM org.hibernate.ejb.Version <clinit>
Informações: Hibernate EntityManager 3.3.2.GA
Nov 18, 2014 8:48:19 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Clientes
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Clientes on table clientes
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Consulta
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Consulta on table consulta
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Racas
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Racas on table racas
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Veterinarios
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Veterinarios on table veterinarios
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Animais
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Animais on table animais
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.AnnotationBinder bindClass
Informações: Binding entity from annotated class: Model.Especies
Nov 18, 2014 8:48:20 PM org.hibernate.cfg.annotations.EntityBinder bindTable
Informações: Bind entity Model.Especies on table especies
Nov 18, 2014 8:48:21 PM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
Informações: Mapping collection: Model.Clientes.listaanimais -> animais
Nov 18, 2014 8:48:21 PM org.hibernate.cfg.annotations.CollectionBinder bindOneToManySecondPass
Informações: Mapping collection: Model.Animais.listaconsulta -> consulta
Nov 18, 2014 8:48:21 PM org.hibernate.cfg.AnnotationConfiguration secondPassCompile
Informações: Hibernate Validator not found: ignoring
Nov 18, 2014 8:48:21 PM org.hibernate.connection.DriverManagerConnectionProvider configure
Informações: Using Hibernate built-in connection pool (not for production use!)
Nov 18, 2014 8:48:21 PM org.hibernate.connection.DriverManagerConnectionProvider configure
Informações: Hibernate connection pool size: 20
Nov 18, 2014 8:48:21 PM org.hibernate.connection.DriverManagerConnectionProvider configure
Informações: autocommit mode: true
Nov 18, 2014 8:48:21 PM org.hibernate.connection.DriverManagerConnectionProvider configure
Informações: using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/db_clinicaveterinaria?zeroDateTimeBehavior=convertToNull
Nov 18, 2014 8:48:21 PM org.hibernate.connection.DriverManagerConnectionProvider configure
Informações: connection properties: {user=root, password=****, autocommit=true, release_mode=auto}
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: RDBMS: MySQL, version: 5.5.34
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: JDBC driver: MySQL-AB JDBC Driver, version: mysql-connector-java-5.1.23 ( Revision: ${bzr.revision-id} )
Nov 18, 2014 8:48:23 PM org.hibernate.dialect.Dialect <init>
Informações: Using dialect: org.hibernate.dialect.MySQLDialect
Nov 18, 2014 8:48:23 PM org.hibernate.transaction.TransactionFactoryFactory buildTransactionFactory
Informações: Transaction strategy: org.hibernate.transaction.JDBCTransactionFactory
Nov 18, 2014 8:48:23 PM org.hibernate.transaction.TransactionManagerLookupFactory getTransactionManagerLookup
Informações: No TransactionManagerLookup configured (in JTA environment, use of read-write or transactional second-level cache is not recommended)
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Automatic flush during beforeCompletion(): disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Automatic session close at end of transaction: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: JDBC batch size: 15
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: JDBC batch updates for versioned data: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Scrollable result sets: enabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: JDBC3 getGeneratedKeys(): enabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Connection release mode: auto
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Maximum outer join fetch depth: 2
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Default batch fetch size: 1
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Generate SQL with comments: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Order SQL updates by primary key: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Order SQL inserts for batching: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory createQueryTranslatorFactory
Informações: Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
Nov 18, 2014 8:48:23 PM org.hibernate.hql.ast.ASTQueryTranslatorFactory <init>
Informações: Using ASTQueryTranslatorFactory
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Query language substitutions: {}
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: JPA-QL strict compliance: enabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Second-level cache: enabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Query cache: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory createCacheProvider
Informações: Cache provider: org.hibernate.cache.NoCacheProvider
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Optimize cache for minimal puts: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Structured second-level cache entries: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Statistics: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Deleted entity synthetic identifier rollback: disabled
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Default entity-mode: pojo
Nov 18, 2014 8:48:23 PM org.hibernate.cfg.SettingsFactory buildSettings
Informações: Named query checking : enabled
Nov 18, 2014 8:48:23 PM org.hibernate.impl.SessionFactoryImpl <init>
Informações: building session factory
Nov 18, 2014 8:48:24 PM org.hibernate.impl.SessionFactoryObjectFactory addInstance
Informações: Not binding factory to JNDI, no JNDI name configured
Nov 18, 2014 8:48:24 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
Informações: Running hbm2ddl schema update
Nov 18, 2014 8:48:24 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
Informações: fetching database metadata
Nov 18, 2014 8:48:24 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
Informações: updating schema
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.animais
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [raca, proprietario, cor, racas_idracas, data_nasc, sexo, especies_idespecie, nome, clientes_idclientes, idanimais, especie]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: [fkccec319af46f713, fkccec319aa937d938, fk_animais_especies1, fk_animais_clientes, fkccec319afaf22d5, fk_animais_racas1]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [fkccec319af46f713, primary, fkccec319aa937d938, fk_animais_especies1_idx, fkccec319afaf22d5, fk_animais_clientes_idx, fk_animais_racas1_idx]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.clientes
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [cidade, estado, email, idclientes, telefone, cpf, nome, endereco]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: []
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [primary]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.consulta
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [hora, veterinario, cliente, valor, produtos_consulta, data, animais_idanimais, idconsulta, veterinarios_idveterinarios, medicamentos, animal, descricao_sintomas]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: [fk_consulta_animais1, fk_consulta_veterinarios1, fk_consulta_clientes1, fkde2881f5cb237f4f, fkde2881f5c2bb8be4]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [fk_consulta_clientes1_idx, fk_consulta_animais1_idx, primary, fkde2881f5cb237f4f, fkde2881f5c2bb8be4, fk_consulta_veterinarios1_idx]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.especies
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [especie_animal, idespecie, animais_idanimais]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: [fk841ff537cb237f4f]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [fk841ff537cb237f4f, primary]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.racas
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [idracas, descricao_raca]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: []
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [primary]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.veterinarios
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [cidade, telefone_residencial, estado, idveterinarios, nome, telefone_celular, endereco]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: []
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [primary]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: table found: db_clinicaveterinaria.veterinarios_consulta
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: columns: [veterinarios_idveterinarios, listaconsultas_idconsulta]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: foreign keys: [fk1fd1e80fc2bb8be4, fk1fd1e80fbbcbc92e]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.TableMetadata <init>
Informações: indexes: [fk1fd1e80fc2bb8be4, fk1fd1e80fbbcbc92e, listaconsultas_idconsulta]
Nov 18, 2014 8:48:25 PM org.hibernate.tool.hbm2ddl.SchemaUpdate execute
Informações: schema update complete
Nov 18, 2014 8:48:33 PM org.hibernate.util.JDBCExceptionReporter logExceptions
Advertência: SQL Error: 1452, SQLState: 23000
Nov 18, 2014 8:48:33 PM org.hibernate.util.JDBCExceptionReporter logExceptions
Grave: Cannot add or update a child row: a foreign key constraint fails (`db_clinicaveterinaria`.`animais`, CONSTRAINT `fk_Animais_Clientes` FOREIGN KEY (`proprietario`) REFERENCES `clientes` (`idClientes`) ON DELETE NO ACTION ON UPDATE NO ACTION)
Exception in thread "AWT-EventQueue-0" javax.persistence.EntityExistsException: org.hibernate.exception.ConstraintViolationException: could not insert: [Model.Animais]
    at org.hibernate.ejb.AbstractEntityManagerImpl.throwPersistenceException(AbstractEntityManagerImpl.java:612)
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:226)
    at View.JCadAnimais.newButtonActionPerformed(JCadAnimais.java:262)
    at View.JCadAnimais.access$500(JCadAnimais.java:21)
    at View.JCadAnimais$FormListener.actionPerformed(JCadAnimais.java:227)
    at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
    at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
    at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
    at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
    at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
    at java.awt.Component.processMouseEvent(Component.java:6505)
    at javax.swing.JComponent.processMouseEvent(JComponent.java:3320)
    at java.awt.Component.processEvent(Component.java:6270)
    at java.awt.Container.processEvent(Container.java:2229)
    at java.awt.Component.dispatchEventImpl(Component.java:4861)
    at java.awt.Container.dispatchEventImpl(Container.java:2287)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
    at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
    at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
    at java.awt.Container.dispatchEventImpl(Container.java:2273)
    at java.awt.Window.dispatchEventImpl(Window.java:2719)
    at java.awt.Component.dispatchEvent(Component.java:4687)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
    at java.awt.EventQueue$4.run(EventQueue.java:708)
    at java.awt.EventQueue$4.run(EventQueue.java:706)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
    at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
    at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
    at java.awt.Dialog.show(Dialog.java:1082)
    at java.awt.Component.show(Component.java:1651)
    at java.awt.Component.setVisible(Component.java:1603)
    at java.awt.Window.setVisible(Window.java:1014)
    at java.awt.Dialog.setVisible(Dialog.java:1005)
    at View.JCadAnimais$1.run(JCadAnimais.java:352)
    at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:251)
    at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:733)
    at java.awt.EventQueue.access$200(EventQueue.java:103)
    at java.awt.EventQueue$3.run(EventQueue.java:694)
    at java.awt.EventQueue$3.run(EventQueue.java:692)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
    at java.awt.EventQueue.dispatchEvent(EventQueue.java:703)
    at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
    at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
    at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
    at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
    at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
Caused by: org.hibernate.exception.ConstraintViolationException: could not insert: [Model.Animais]
    at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:71)
    at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
    at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:40)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2158)
    at org.hibernate.persister.entity.AbstractEntityPersister.insert(AbstractEntityPersister.java:2638)
    at org.hibernate.action.EntityIdentityInsertAction.execute(EntityIdentityInsertAction.java:48)
    at org.hibernate.engine.ActionQueue.execute(ActionQueue.java:250)
    at org.hibernate.event.def.AbstractSaveEventListener.performSaveOrReplicate(AbstractSaveEventListener.java:298)
    at org.hibernate.event.def.AbstractSaveEventListener.performSave(AbstractSaveEventListener.java:181)
    at org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:107)
    at org.hibernate.ejb.event.EJB3PersistEventListener.saveWithGeneratedId(EJB3PersistEventListener.java:49)
    at org.hibernate.event.def.DefaultPersistEventListener.entityIsTransient(DefaultPersistEventListener.java:131)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:87)
    at org.hibernate.event.def.DefaultPersistEventListener.onPersist(DefaultPersistEventListener.java:38)
    at org.hibernate.impl.SessionImpl.firePersist(SessionImpl.java:618)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:592)
    at org.hibernate.impl.SessionImpl.persist(SessionImpl.java:596)
    at org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityManagerImpl.java:220)
    ... 60 more
Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLIntegrityConstraintViolationException: Cannot add or update a child row: a foreign key constraint fails (`db_clinicaveterinaria`.`animais`, CONSTRAINT `fk_Animais_Clientes` FOREIGN KEY (`proprietario`) REFERENCES `clientes` (`idClientes`) ON DELETE NO ACTION ON UPDATE NO ACTION)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
    at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)
    at com.mysql.jdbc.Util.getInstance(Util.java:386)
    at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1040)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4120)
    at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:4052)
    at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:2503)
    at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2664)
    at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2794)
    at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2155)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2458)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2375)
    at com.mysql.jdbc.PreparedStatement.executeUpdate(PreparedStatement.java:2359)
    at org.hibernate.id.IdentityGenerator$GetGeneratedKeysDelegate.executeAndExtract(IdentityGenerator.java:73)
    at org.hibernate.id.insert.AbstractReturningDelegate.performInsert(AbstractReturningDelegate.java:33)
    ... 75 more
  1. Você vai ver essas setas em qualquer página de pergunta. Com elas, você pode dizer se uma pergunta ou uma resposta foram relevantes ou não.
  2. Edite sua pergunta ou resposta caso queira alterar ou adicionar detalhes.
  3. Caso haja alguma dúvida sobre a pergunta, adicione um comentário. O espaço de respostas deve ser utilizado apenas para responder a pergunta.
  4. Se o autor da pergunta marcar uma resposta como solucionada, esta marca aparecerá.
  5. Clique aqui para mais detalhes sobre o funcionamento do GUJ!

2 respostas

Não é a resposta que estava procurando? Procure outras perguntas com as tags java ou faça a sua própria pergunta.