Announcement Announcement Module
Collapse
No announcement yet.
Cannot present nested annotations unless created by this class Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot present nested annotations unless created by this class

    Hello,

    I've had to used Hibernate annotations in order to create a weird mapping for a legacy database.

    In particular:

    Code:
        @ManyToOne(fetch = FetchType.EAGER)
        @JoinColumnsOrFormulas({
        	@JoinColumnOrFormula(column=@JoinColumn(...)),
        	@JoinColumnOrFormula(formula=@JoinFormula(...))
        })
        private Code code;
    Now it works, but I canīt add more fields using Roo:

    roo> field number --fieldName newCode --notNull --type java.lang.Integer --column C_NEW_CODE
    Cannot present nested annotations unless created by this class
    I can cut the annotation, execute the Roo command, and copy the annotation again, but it's a little bit annoying.

    Could you give me any suggestion on this regard?

    Thanks.

  • #2
    I also had this problem, somebody recently created a JIRA issue for this, about a month after this post:
    https://jira.springsource.org/browse/ROO-3218

    Comment


    • #3
      I made a change today for ROO-3218 to press on and ignore the partcular NestedAnnotationAttributeValue if it encounter this issue. Please test

      Comment

      Working...
      X