Results 1 to 4 of 4

Thread: Is there a ROOIgnore type annotation

  1. #1
    Join Date
    Dec 2010
    Posts
    14

    Default Is there a ROOIgnore type annotation

    Is there any way to get roo to ignore a field? Sort of like commenting it out from roos point of view? @Transient doesn't do this, roo still complains about the field.

  2. #2
    Join Date
    Dec 2007
    Location
    Stockholm, Sweden
    Posts
    190

    Default

    You could do every thing but the field, then push in refactor the class and put the field in.
    Shahzada Hatim
    @geoaxis/twitter
    http://hatimonline.com

  3. #3
    Join Date
    Sep 2009
    Posts
    101

    Default

    Try the "transient" access modifier instead of the annotation. If your JPA provider has knowledge of "transient" modifier, you can remove the annotation.

    Code:
    private transient Date lastAccessed;

  4. #4
    Join Date
    Dec 2010
    Posts
    14

    Default

    sweet- thanks for the replies, the transient access modifier does the trick. i've been stuck on this for a couple weeks. i had designed around this because i couldn't figure out how to get non-entity beans in an entity....

Posting Permissions

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