java - Is there a better pattern instead of decorating a data class with DAO? -


i have pojo on project maps dynamodb object, decorated dynamodb annotations. problem see couples data specific persistence. in practice don't think problem, smell imo. there other recommended pattern use-case?

typically, alternative annotating class in manner specify mapping in external configuration such xml. however, has other issues: it's typically more verbose, prone typos, , requires in more places, example. you'll need decide trade-off prefer.


Comments

Popular posts from this blog

The SDK directory does not exist (ubuntu 16.04) (react native) -

python - How to clone or copy a list? -

python - How to use Celery in Tornado with redis as broker and backend? -