NM-156 wrote:
Thanks for replying. Actually, my clarification question was for Thompson, but your reply is very helpful...
Well you got it quite right, this is one of the multiple ways to do it.
We currently use a common repository for our beans and interfaces, and use derived classes for our applications.
However, for the mappings there is either the way you described, and which I think is the most simple one or you could use an approach pretty similar to a vendor branch.
You practically view your application unspecific mappings as a kind of 3rd party product and apply the application specific changes within your application. If you change your data base and the mappings you put it back to your applications and re-merge the application specific changes.
While this may be a very beautiful way, it may be a impractical if the data base structure changes a lot.