Create a Map property

27 views
Skip to first unread message

onclez...@gmail.com

unread,
Dec 22, 2017, 6:31:15 AM12/22/17
to Sculptor Generator
Hi guys!

Is it possible to create a simple map property in Entity / ValueObject or DTO.

ie
Map<String,String> myMap

When i do that, here what Eclipse said :
Multiple markers at this line
- no viable alternative at input 'Map'
- ',' is a reserved keyword which is not allowed as Identifier.
   Please choose another word or alternatively escape it with the
   caret (^) character, e.g. '^,'


Regards

Torsten Juergeleit

unread,
Dec 22, 2017, 3:54:45 PM12/22/17
to Sculptor Generator
No, the current version of Sculptor has only support for the following collection types:
  • Set - unordered collection
  • List - ordered collection using orderby or orderColumn sorting
  • Bag - ordered collection using orderby sorting
An implementation of Map would raise the question where to store the key with JPA.

/Torsten
Reply all
Reply to author
Forward
0 new messages