Announcement Announcement Module
Collapse
No announcement yet.
Read-only entities Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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
    You could push in the methods, just redeclare them, into your .java file and provide empty method bodies.

    Comment


    • #3
      James you proposed a good workaround, but I think this issue should be reported to JIRA.

      Comment


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

        Thanks!

        Comment

        Working...
        X