Start a new topic

How can I use custom enums within my Entity?

I want to store a custom enum in my collection, how can I do this?
1 Comment

When defining your enum, add the @Value annotation to each possible value. Then, in your GenericJson class you can use the standard @Key annotation and use the enum as you would any other type of value.

For example:


public enum COUNTER{






and then, in your GenericJson class, you can add the following:


private COUNTER myCount;

Login or Signup to post a comment