I'm working with Spring Roo and I need to overwrite Roo's Remove() method in the Roo_Entity.aj file. I'm getting a lot of Foreign Key constraint errors when I try to delete my entity, although I think my JPA annotations are correct.
What I'm trying to do is overwrite the Remove() method in the Roo_Entity.aj file, to manually check for foreign keys and remove the offending records before my transaction commits.
I've created my own Remove() method in my .java file, however Roo is not updating the Roo_Entity.aj file automatically and I've had to manually delete and edit the .aj file. Should Roo recognise that I've manually created a Remove() method in my .java file and manage the Roo_entity.aj file accordingly?
Thanks in advance!