Tuesday, December 18, 2007

Lead by example: spring/hibernate/shards

When I wrote the posts about using Hibernate and Hibernate shards, I did so offering very little code. I realize that doing so does not provide you, the reader, enough to go out there and actually want to try this technology. That is my fault.

I am happy to announce, that I am now working on a simple Spring/Hibernate example that you will be able to download and hack together however you please. Following that posting, I will dissect the main points of that project. At least, the main points that I derive from it, but I encourage comments that lead me to be even more clear about topics that I did not discuss. Some of the main ideas I want to hit on are:
  1. Hibernate => by example'
    1. Creating your data layer
    2. Basic ORM management
    3. Sharding
  2. Spring => Why use it?
    1. Dependency Injection
    2. Inversion of Control
    3. MVC
Yea, that's going to be a few posts. But I think it will be worth it. I hope you agree. I recently found a quote that lead me down this path that I am about to embark upon:

“Tell me and I'll forget; show me and I may remember; involve me and I'll understand.”

I think it is perfectly valid. You won't learn by just reading. You will learn by me showing you by example, and by interacting with my example. Hopefully at that point, you will understand it.


1 comment:

vijay rahul said...

what happened to the code.....