iipolovinkin / JupiterBank

Test Spring Web Application
1 stars 0 forks source link

JB-65 Transaction dependency from Accounts #88

Open iipolovinkin opened 8 years ago

iipolovinkin commented 8 years ago

Client and Account have relation 1 to many. And Transaction depends on Account in current logic . Transaction(id, amount, sender_id, receiver_id, time). _Senderid and _receiverid are identifiers of entity Account. It doesn't looks like pretty good. Because when service try to delete account it will get error that exist transactions which depends on that account. It should be redesigned. Besides, Transactions it is like history, log journal, that is why we should not delete them in generally.