Hello.
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.Code:@Column(name="ID", unique=true) @Id @GeneratedValue(strategy=GenerationType.AUTO) private Long id;
My question is :Code:@Column(name="internalID", unique=true) 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 ?
regards
Marcin


Reply With Quote