Hello,
I've had to used Hibernate annotations in order to create a weird mapping for a legacy database.
In particular:
Now it works, but I canīt add more fields using Roo:Code:@ManyToOne(fetch = FetchType.EAGER) @JoinColumnsOrFormulas({ @JoinColumnOrFormula(column=@JoinColumn(...)), @JoinColumnOrFormula(formula=@JoinFormula(...)) }) private Code code;
I can cut the annotation, execute the Roo command, and copy the annotation again, but it's a little bit annoying.roo> field number --fieldName newCode --notNull --type java.lang.Integer --column C_NEW_CODE
Cannot present nested annotations unless created by this class
Could you give me any suggestion on this regard?
Thanks.


Reply With Quote