Paul Sturrock wrote:Two mappings for the same entity so you can use two different id generation strategies? Why?
its complected to explain, let me try
existing design (shopping cart)
-----------------
when user submit order we store client credit card information in database, here we no need to assign an id, so we used sequence
new requirement (new shopping cart)
--------------------
when user submit order we need to call fraud web service after that we store client credit card information in database,
here fraud web service need credit card id as the request, so we are going to use assigned