I'm trying to generate an ITD via Metadata just as Roo does it (using ItdTypeDetailsBuilder).

In this ITD I want to declare an inner type with one filed that must be annotated with javax.validation.Valid. Looks like ItdTypeDetailsBuilder doesn't get defined annotations in FieldMetadata, when the ITD is written to .aj file, the inner type is there but no annotation in the declared field.

Is this a bug of ItdTypeDetailsBuilder?.
Is there a workaround solving this issue?