isis-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Haywood <...@haywood-associates.co.uk>
Subject Re: Value Object Collection types for properties
Date Sun, 01 Apr 2012 07:27:56 GMT
Short answer: no.  This is indeed a limitation of the Isis programming
model.

It's not something we find too restricting in practice, however.  You could
of course simply define a very simple "lookup" entity that wraps the
string, and have a collection of those.

Arguably this is better design too, since it builds the ubiquitous language
for your domain.  After all, what's a list of strings meant to mean,
anyway?  But a list of preferences, or a list of colors, or a list of US
states, or a list of...  you get the idea.

Cheers
Dan


On 30 March 2012 14:46, Denis Robert <denis@denisrobert.net> wrote:

> Is there any way to define properties of type Collection<[SomeValueType]>
> such as List<String>?
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message