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 -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -