You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Even if the code is auto-generated, is cumbersome that the same code is copy-pasted very much time.
I think it's better to implement a AbstractRepository and an Repository interface, that shares the common code to all repositories created with EWA. This abstract and interfacecan be useful also to people that do NOT want to use EWA. The same think should be done also for services.
For this reason, the findByNameOfUniqueId() must be renamed simply findById(). This also improves abstraction and encapsulation. Interface for models and aggregators should also be implemented.
PS: are specific interfaces for repo and services really needed? Evaluate to eliminate them.
The text was updated successfully, but these errors were encountered:
Even if the code is auto-generated, is cumbersome that the same code is copy-pasted very much time.
I think it's better to implement a
AbstractRepository
and anRepository
interface, that shares the common code to all repositories created with EWA. This abstract and interfacecan be useful also to people that do NOT want to use EWA. The same think should be done also for services.For this reason, the
findByNameOfUniqueId()
must be renamed simplyfindById()
. This also improves abstraction and encapsulation. Interface for models and aggregators should also be implemented.PS: are specific interfaces for repo and services really needed? Evaluate to eliminate them.
The text was updated successfully, but these errors were encountered: