Hi Hitendra-
I put up some sample code I fooled with a little tonight. I did a native SQL join. The code is on my site. I think this way is the quickest. All you need are 2 pojos, the mappings, and the config file and if you have db experience, it is really easy to write the sql.
The joins you are talking about may be the collection mappings. I also have an example of that on my site, my first "one to many" mapping. If you need finer grain control than mapping a collection, like a set, you can use HQL or write the native query.
You can email me if you like, and I will try to send my config files or whatever you need to get going. I could probably add a link for project files for download.
My site is at
3rdshiftcoder
My email is
thirdshiftcoder@gmail.com.
I am just a keyboard specialist that likes to code as a hobby, and I have learned to keep my attitude in check. Helen Borrie, who writes Firebird books, described herself, among other things, as the bottle washer for the Firebird Foundation. That teaches me a thing or two about not worrying about a title.
I like the Hibernate without JPA. I don't have a manager worrying over my shoulder about switching ORM provider, so thus, no need to worry about the standard JPA.
I might be able to help with m2 plug-in with Maven if you need help. I am learning that with a little success with the help of the forum. I only know a subset of it though.
I don't know if you use Eclipse.
Well, whatever your decision, that is cool. I am just learning too.
Having said all that, I find the tutorialspoint site for Hibernate is really good. It is maybe all you need anyway. Also, the new Hibernate book comes out sometime around March at Amazon.com.
good luck,
jim (hobby coder)