cancel
Showing results for 
Search instead for 
Did you mean: 

CAP Java - Having Custom annotations

timrehrmann
Explorer
0 Kudos
736

Hey guys!

Is there a possibility make the cds to java generator add custom annotation in Java Code?

To give an example, I want to send an cds data entity to a different REST API that only accepts XML content. So I need to convert the data to a XML format. The easiest way would be to annotate the Java class with XML annotations, but as the Java class itself is generated from a cds file one would need to add the extra annotations each time after the generation of the class.

Would be nice if one could add annotations in the cds file that puts these custom annotations into the Java file.

Thanks and kind regards,

Tim

View Entire Topic
adrian_goerler
Advisor
Advisor
0 Kudos

Hi Tim,

this is not possible, unfortunately, currently. We'll check if we can pick this request up.

Thank's for the suggestion.

Kind regards,

Adrian