JDBCException « Batch « JPA Q&A





1. JDBCException: Could not execute JDBC batch    forum.hibernate.org

[quote="gloeglm"] I suspect you are forgetting to set your parent reference in the child object, like this: [code] pessoa.getCaixas().add( caixaEntrada ); caixaEntrada .setPessoa(pessoa);[/code] If this does not fix it, please show more of your mapping, eg. the class and id parts of it, too.[/quote] The code for Pessoa: [code] /** * Represents a person * @author J

2. JDBCException: Could not execute JDBC batch update/insert    forum.hibernate.org

I found the what was causing the "failure to batch update" / "insert failed" problem - a field mis-spelled in the bean.hbm.xml file. The moral of the story is that I found the error by printing the FULL stack trace, which I had neglected to do. So it does pay to follow the instructions for posting carefully and completely!

3. net.sf.hibernate.JDBCException: Could not execute JDBC batch    forum.hibernate.org

Hibernate version:2.1.6 Mapping documents: