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
Post a Comment