Link Details

Link 1176703 thumbnail
User 1246645 avatar

By marcobehler
via blog.marcobehler.com
Published: Jul 08 2014 / 09:07

We like to offer different opinions at MarcoBehler, and the first one is this: A huge part of the Java community has been living in a ghetto and/or cult and/or comfort zone when it comes to saving their objects to a database. Take for example these phenomena you see over and over again in real life projects: First, does not matter how much he abuses his database as a stupid data dump and that he ignores those generated 60 table-join sql statements because he never looks at them in the first place, the fashist Java developer needs a structure to be happy: Have a DAO (abstracting your data access, and yep, just in case, let’s create an interface too, because cglib or javassist are…uhm….weird). Now that we have this sorted out, let’s please use JPA and not Hibernate directly (abstracting away your ORM). Sure, why not hot-swap and A/B-Test your persistence provider and run Hibernate on M(on)T(tue)W(wed) and TopLink on TFSS ;) Ok ok, spring-data-jpa has a few nice points…
  • 9
  • 0
  • 452
  • 2247

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Java Performance Optimization
Written by: Pierre-Hugues Charbonneau
Featured Refcardz: Top Refcardz:
  1. Design Patterns
  2. OO JS
  3. Cont. Delivery
  4. Java EE7
  5. HTML5 Mobile
  1. Node.js
  2. Debugging JavaScript
  3. OO JS
  4. JSON
  5. Ajax