Intellij template setters missing $field.integer

已回答

Under the autogeneration of settings, I don't see how a field can be check if it is an integer.

I see $field.double, $field.long, $field.string, and even $field.enum

Where is $field.integer?

0

You can try this:

#if ($field.type == 'int' || $field.type == 'Integer')
0

请先登录再写评论。