Announcement Announcement Module
Collapse
No announcement yet.
Validation in duplicates Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Validation in duplicates

    I'm using automatic controller for a simple object. My object has a field "description". When I'm saving a new object I would like to validate that "description" is unique in my db. Where I should do this validation? When I implement it in Object.aj Roo erase it!
    Last edited by paramosyermos; Aug 12th, 2009, 10:57 AM.

  • #2
    @paramosyermos,

    Roo will delete .aj files when changes are necessary. The recommended way is to 'push-in' the method you want to change from the .aj file to the actual java source file. You can do that manually or use STS to do it for you. If you don't change the method signature, you will notice that Roo will not generate the method in the aj file any more and therefore you have full control of your customized method in the normal java sources.

    HTH,

    Stefan

    Comment

    Working...
    X