hibernate - Oracle jdbc driver: Constraint [null] -


we using oracle 12c java/spring/hibernate rest application. ui guys forgot validate 1 of values on save not null, hibernate threw dataintegrityviolation. when happens locally, exception stack trace shows me actual constraint violated. on test server, exception shows constraint [null].

i remember having jump through seemingly ridiculous hoops download , integrate oracle jdbc driver maven. there similar hoops getting driver work on server? maven dependency:

    <!-- oracle 12c driver version -->     <oracle.version>12.1.0</oracle.version>           <dependency>       <groupid>com.oracle</groupid>       <artifactid>ojdbc7</artifactid>       <version>${oracle.version}</version>     </dependency>    

here partial stack trace:

org.springframework.dao.dataintegrityviolationexception:  not execute batch; sql [insert omg_table (omg_cd, created_by, created_dt, omg_difference, filerentry_omg, modified_by, modified_dt, removal_omg, omg_uom, omg_amt, advalorem_omg, omg_id, line_omg, omg_class_id) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)]; constraint [null]; nested exception org.hibernate.exception.constraintviolationexception: not execute batch 


Comments

Popular posts from this blog

php - Permission denied. Laravel linux server -

google bigquery - Delta between query execution time and Java query call to finish -

python - Pandas two dataframes multiplication? -