error « Default « JPA Q&A





1. Hibernate Error inserting data into a column with DEFAULT and NOT NULL constraints    coderanch.com

I have a column in our Oracle database that is defined with NOT NULL and DEFAULT constraints. When I try to insert a row into this table using JPA, I get the following error. Caused by: java.sql.BatchUpdateException: ORA-01400: cannot insert NULL into ("TT_OWNER"."TIMETRACKER_SHIFT_ELEMENT"."SHIFT_STATUS") at oracle.jdbc.driver.DatabaseError.throwBatchUpdateException(DatabaseError.java:342) at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10720) at org.apache.tomcat.dbcp.dbcp.DelegatingStatement.executeBatch(DelegatingStatement.java:297) at org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:48) at org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:246) I think Hibernate is trying to do the ...

2. Initialization error: Unable to instantiate default tuplizer    forum.hibernate.org

Hi Can someone please help me out in this error: Unable to instantiate default tuplizer [org.hibernate.tuple.entity.DynamicMapEntityTuplizer] I have loaded all required Jar files on Oracle 11g JVM (it is where my test program is run). I am unable to go beyond this error. Thanks in advance. Ram ---------------------------------------------------- [list]10-06@16:27:40 Version [INFO] Hibernate Annotations 3.4.0.GA 10-06@16:27:41 Environment [INFO] Hibernate 3.3.2.GA 10-06@16:27:41 Environment ...