Map not working in DTO

22 views
Skip to first unread message

richar...@taskize.co.uk

unread,
Oct 12, 2015, 5:01:27 AM10/12/15
to Sculptor Generator
Hi -

I have a simple DTO where I need a Map.

However I get an error. Are Maps supported in DTOs.. or at all?

If I change to a List the Error goes away. I have tried changing from DTO to ValueObject and Entity and the same issue exists.. 

DataTransferObject User {

   gap

   Map<String, Boolean> roles;

   String userName; 

   String token;

}


Thanks,

Richie. 

Torsten Juergeleit

unread,
Oct 12, 2015, 6:24:59 AM10/12/15
to Sculptor Generator
The data types of domain attributes supported by Sculptor are listed here. The collection type Map is not supported as attribute data type.

/Torsten
Reply all
Reply to author
Forward
0 new messages