May 5th, 2011, 08:57 AM
Override @RooEntity for all entities
How can I override functionality of @RooEntity for all my entities? I have to change delete so that instead of removing from database just make the entity inactive, and consequently I have to change "findMyEntity", "findAllMyentites" and "countAllMyEntites".
I was thinking about having an abstract super class and define methods there, but unfortunately method names are like: "findMyEntity" so they are entity name specific. Any suggestion how to override @RooEntity in one place and not in each entity?
Tags for this Thread