milesressler / mosaic-oms

MIT License
1 stars 1 forks source link

Add Reason to status change #9

Open milesressler opened 1 month ago

milesressler commented 1 month ago

This is primarily for Cancelled to indicate why it was cancelled

milesressler commented 3 weeks ago

thinking through this some more.... Cancelled should have some pre-defined reasons, and an Other types, which allows free form. In the order history entity, we can have a subclass for OrderHistoryCancellation type using single table inheritance (https://www.baeldung.com/hibernate-inheritance#single-table), or just some optional fields on the main OrderHistory type.