The previous blog in the JPA implementation patterns series discussed different ways to test your JPA code. Figuring out how to test DAO's and then being frustrated because the existing literature on JPA seemed to say very little on this subject, was actually the trigger for me to write these blogs. I have now come full circle, which means it's time to wrap up the series. There's lots more to write about, so keep following this blog!
After discovering that there was a lack of documentation on how to use JPA in real-life scenario's, I have written a series of blogs about the JPA implementation patterns I discovered while writing JPA code. To wrap up the series, I have made an overview of all the patterns that have been discussed for easy reference. The list is mostly in chronological order. I only changed the order slightly to make a distinction between the basic patterns and the advanced patterns.
I hope these patterns will help you when writing your JPA application. If there is one thing to take away from this series is that it is pays off to really look into the details of JPA. Even though the promise of an abstraction layer invites you to take ORM for granted. Incorrect database usage is still Java EE performance problem #1, so there is a lot to gain here!
While writing down my experiences I have learned a lot about JPA. First of all because writing something down forces you to really look into the details, but most importantly because of the feedback I got on the blogs and after my presentation at J-Spring, the Dutch Java developer conference. And finally I would like to thank my colleague Albert Sikkema for his contribution to the series!
Filed under JPA, JPA implementation patterns | 10 Comments »
i can’t even open java to download (core files won’t unzip) please help me.
[...] falta de documentação efetiva de como usar o JPA na vida real, Vincent Partington documentou uma série de patterns com o objetivo de ajudar e direcionar os projetistas a elaborem suas camadas de persistencias [...]
where can i learn advanced patterns in java
I found the JPA presentation in Dutch very useful introduction to JPA. Thought it was too useful to remain in Dutch and used Yahoo’s Babel Fish service to translate it into English. Here is the URL of my attempt:
(Original in Dutch):
http://www.nljug.org/pages/events/content/jspring_2009/sessions/00027/
Translation in English (as a Google Doc):
http://docs.google.com/Doc?docid=0AZ8jw5JC8Og2ZGZmNTI4emtfMTJtZzRoYmNjag&hl=en
@Ramkumar: Thanks for the translation. Yahoo Babel Fish even seems to a pretty descent job of it.
Vincent, have you/will you create an FOS project that has the core classes and other ones to support the ideas you’ve presented? Would be good…
From a little searching, I saw projects create their own similar base classes within themselves (even FOS ones), and even one that tries to be stand alone (is nice, but has some goofy config needs that cause concern for me). It is uncoordinated.
Would be good to create a simple clean one.
@JJ: No, I have not created a project to bundle all this code. I don’t really think there is that much code to bundle… But please feel free to this so in my stead. By publishing the code I have placed it in the public domain already anyway.
[...] JPA implementation patterns: Wrap-up | Xebia Blog (tags: JPA patterns) [...]
Is there any JPA implementation pattern for storing internationalized data?
I found some solutions for hibernate
e.g. http://www.theserverside.com/tt/blogs/showblog.tss?id=HibernateInternational
but nothing for JPA only.
Perhaps someone can post suggestions or maybe JPA 2.0 solutions?
[...] for anyone who new to JPA. In this post I am going to summarize each and every post from ‘JPA Implementation Patterns‘ article [...]