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

Is there a better way to structure post methods in Class Based Views -

reflection - How to access the object-members of an object declaration in kotlin -

php - Doctrine Query Builder Error on Join: [Syntax Error] line 0, col 87: Error: Expected Literal, got 'JOIN' -