Enum set in spring Roo

42 views Asked by At

I've an Enum, and a class that could refer to multiple constants in that enum.

enum type --class ~.model.Vertical
enum constant --name PUBLICSECTOR --class ~.model.Vertical
enum constant --name HEALTHCARE   --class ~.model.Vertical

what I need is something like this, a Vendor can be present in both Verticals, so I need a collection of the selected enum constants:

focus --class ~.model.Vendor
field set --fieldName inVerticals --type ~.model.Vertical

Is there a way to create an EnumSet in Spring Roo? the field set seems to be for table relationships.

0

There are 0 answers