Hi Friends,

This is Kumaraswamy.

I am using ofbiz for my e-commerce application. I like the option data seed
through XML import which is provided in ofbiz.

 we are seeding the data for *InventoryItem* entity though XML import since
eariler. By doing this, The sequence Numbers are not updating in *
SequenceValueItem*. Now I am not able to create *InventoryItem* through
events(either JAVA or mini-lang),  its giving duplicate primary key error,
because of the sequence numbers are already used.

Of course, by doing max(sequenceId)+1 and store. That will be bad idea what
I feel. Is there any alternate for this. May be an ECA to update
*SequenceValueItem
*entity with new seqId for every InventoryItem XML import.

Generally, we do XML imports frequently for few entities. How to implement
generic ECA which will update *SequenceValueItem *for every entity which
uses sequenceId. Any code help will be appriciated.



Thanks in Advance

-- 
Thanks,
Kumaraswamy.N

Reply via email to