Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » eclipselink history policy: history records with null id(my history table is not recording id as expected.)
icon5.gif  eclipselink history policy: history records with null id [message #1725608] Fri, 04 March 2016 20:53
Iva Conte is currently offline Iva ConteFriend
Messages: 3
Registered: February 2016
Junior Member
I'm trying to use Eclipselink History Policy according to the following example: https://wiki.eclipse.org/EclipseLink/Examples/JPA/History

However, in my case the updates/deletes are not being saved as expected, id field is saved as null as follows:

1)insertion

EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID START_DATE END_DATE
1 Bob Way 55000 6 2010-06-10-12:00 null

2) update

EMP_ID FIRSTNAME LASTNAME SALARY ADDRESS_ID START_DATE END_DATE
1 Bob Way 55000 6 2010-06- 10-12:00 2010-06-10-12:03
null Bob Way 50000 6 2010-06-10-12:03 null

3) deletion : nothing happens

I've used mysql and postgresql to perform this tests. My history table is not using any constraints or identity fields. Is this the right behavior of history feature? Is there something else to set up?
Previous Topic:EclipseLink: Constructor & Query Results Cache
Next Topic:EclipseLink: "Missing class for indicator field value" without inheritance
Goto Forum:
  


Current Time: Thu Apr 25 22:55:15 GMT 2024

Powered by FUDForum. Page generated in 0.63359 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top