All Questions
2 questions
1
vote
2
answers
202
views
Need good design: Anemic Model, Inheritance and Pattern Matching
I have Handler classes which accepts Queries and returns Results. Handlers is anemic. They accept input data bag and returns output data bag. Handlers can be many so I created common generic interface ...
2
votes
2
answers
154
views
Recommended practice for sharing fields between domain models
I'm working with a model that currently looks like this:
class Sign {
enum Type { A, B }
Color color;
String textLine1;
String textLine2;
Type type;
Sign(Type type, Color color, ...