Qorder/QorderWS

Products stay orphan after business deletion

Closed this issue · 2 comments

While running some tests, i realized that when i delete a business, it's products stay stored in database as orphans. Those products stay stored, even when i run the project with hibernate's create db configuration!! So after the creation process, when i send a new business to database, and try to fetch it again, those orphan products find reference to business because of the same id key and are being fetched all together.

changes were made and commited in order to be deleted.

fixed