We have one microservice that will be deployed on two different environments(A and B). There are some common fields and also some are specific to the environment.
SomeEntity for environment
A have only
age and their
SomeEntity for environment B have only
experience and their
There are some fields that are common in both the environments.
We don't want to create two different Entities for both the environment because there are only 2-3 fields that are specific to the environment and 23-25 fields are common.
Actually, we are looking for some
design pattern or
tool which handle this situation the in the best way OR any inbuilt feature in
Can someone guide what could be the best way to handle this situation?