I'd like to annotate a getter-method with @IpsEnumId(enumType = MyEnum.class).
As I know from Annotations are removed by Faktor-IPS Code Generator, I tried to add a Java-Doc-Line @customizedAnnotations ADDED. But that does not work. My annotation line disappears after a rebuild.
What can I do?
All annotations starting with
@Ipsare treated by the code generator as its own and are not affected by@customizedAnnotations. You can tell Faktor-IPS to always keep an annotation you manually added in the .ipsproject file with the line<Property name="retainAnnotations" value="IpsEnumId"/>in the<IpsArtefactBuilderSetConfig>section.