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:
Code:
	@Column(name="ID", unique=true)
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Long id;
Now there is requirement to set another column by this id.

Code:
	@Column(name="internalID", unique=true)
	private Long internalID;
My question is :

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