简体   繁体   中英

EJB3 eclipseLink on JBOSS EAP6 with POSTGRES no insert in database

I recovered a project that I migrate from MYSQL to POSTGRES and under JBOSS EAP6 6.4.22.

When in my form I try to insert a new record, I have no error message and the insert is not performed in POSTGRES, but the sequence which serves as primary key is well incremented!

I am using org.eclipse.persistence.jpa.PersistenceProvider and POSTGRES12.

Where is my mistake?

Ok it seems i have resolved problem

A rename constraint Postgres ALTER INDEX authors_pkey RENAME TO authors_pkeyb It seems default constrainte name make problem

B IN persistence.xml file

C Compilation skip test >mvn clean install -DskipTests, otherwise i could not compil

Regards

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM