You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@isis.apache.org by Dan Haywood <da...@haywood-associates.co.uk> on 2012/04/01 09:27:56 UTC
Re: Value Object Collection types for properties
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 <de...@denisrobert.net> wrote:
> Is there any way to define properties of type Collection<[SomeValueType]>
> such as List<String>?
>
>