Results 1 to 3 of 3

Thread: Cannot present nested annotations unless created by this class

  1. #1
    Join Date
    May 2006
    Location
    Madrid
    Posts
    382

    Default 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. #2

    Default

    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

  3. #3
    Join Date
    Dec 2005
    Posts
    929

    Default

    I made a change today for ROO-3218 to press on and ignore the partcular NestedAnnotationAttributeValue if it encounter this issue. Please test
    Alan Stewart
    Spring Roo Committer
    twitter @alankstewart

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •