(Java) How should I implement code for 2 semantically identical entities that need to be stored in different DB tables?
We are an E-commerce company and so far, we have been using an entity called DeliveryAddressEntity to represent address data stored when we receive orders. I am trying to add support for BillingAddressEntity, which would have the exact same fields as DeliveryAddress, but I need it to be stored in a different table. So far I have included an abstract class, called AddressEntity: