I decided to have a DAO for the abstract Entity so that I can perform operations common to all entities such as for instance something like this:
So that adds up to a total of 7 DAOs just to deal with the concepts of Advertisements and Accounts...
@Query("UPDATE Advertisement a SET a.advertisementActivated = false WHERE a.account.accountID = ?1")
def deactivateAdvertisementsFromAccountID(accountID: Integer): Int
Regarding the first part of your reply, are you basically saying that it is OK to have that many DAOs?
I am not sure I understand what you said about low coupling and high cohesion. On which side is my current design tipped?
Originally Posted by dr_pompeii