JPA/Hibernate in Java SE 6, Best Practices for data access

I am starting a normal Java SE project and i am planning to use JPA/Hibernate. I was wondering if anyone could enlighten me as to what is considered the best way to interact with Hibernate in this environment (data access layers)?


I'm not sure what's considered the best approach to this, but at my workplace, we have based most of our Hibernate interaction on these articles:

Don't let Hibernate steal your identity and Generic Data Access Objects

They show you how to make your mapped classes in a smart way, and how to implement a generic DAO that can be reused for any persistent class. This has worked out nicely for us.

Need Your Help

Is it possible to combine REPLACE with LIKE to replace multiple values in oracle database column

regex oracle replace oracle11g

This is similar to the question here but instead of replacing a single value I want to replace multiple values with matching pattern.

Assimp Sample giving errors

c++ opengl assimp

I just got the last assimp SDK, and made a project, I linked it corectly ( no errors with linking ) But I seem to have some troubles with the Sample project. To be more specific the SimpleOpenGL on...

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.