It seems that the java code generator framework CodeModel is not capable of creating annotations which only contain an enum value without a name - unfortunately a very common pattern (which JPA uses, for example):
@Temporal(TemporalType.TIMESTAMP)
private Date createDate;
The API documentation only states "TODO How to add enums to the annotations"
Question:
Is there any way of working around this limitation?
Annotation parameters "without a name" are actually just a shorthand for a default parameter named "value", so these are equivalent: