In my spring batch application I have my record which need to be stored in database.
I use HibernateItemWriter.
In my class I have id column:
Now there is requirement to set another column by this id.
private Long id;
My question is :
private Long internalID;
How can I do it in my application ?
ID is generated in hibernate store process and I don't have access to this field in my processor.
How I should configure application or annotate my internalID fileld to update internalID by ID column after DB insert operation ?