Results 1 to 4 of 4

Thread: Read-only entities

  1. #1
    Join Date
    Dec 2010
    Posts
    29

    Default Read-only entities

    Hi, with Roo 1.1.2, I could do something like this

    Code:
    @RooEntity(removeMethod = "", mergeMethod = "", persistMethod = "", flushMethod = "")
    This would make sure that my entity was read-only (because those methods were not generated).

    In 1.1.3 and 1.1.4, doing this gives me this error : "Fully qualified type name required"

    So what is the best way to make an Entity read-only?

  2. #2

    Default

    You could push in the methods, just redeclare them, into your .java file and provide empty method bodies.

  3. #3
    Join Date
    Sep 2004
    Location
    Valencia, ES
    Posts
    92

    Default

    James you proposed a good workaround, but I think this issue should be reported to JIRA.
    Enrique Ruiz
    DiSiD - http://www.disid.com

  4. #4
    Join Date
    Dec 2010
    Posts
    29

    Default

    It's a good idea if there is not a more Roo-ish way of doing it.

    Thanks!

Posting Permissions

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