Friday, October 18, 2013

First steps with Hibernate - basic entity

learning through tests

Some time ago, when I started to learn Hibernate, I took a while and thought what would be the best way to learn this ORM. As a fan of test-driven development I decide to try learn it through tests and after a few tests were written I had to admit that choice was good and this is really efficient way of learning new things. Additionaly, I was practicing testing and improves my skills in this subject, which was also great benefit.

Since then, whenever I have to or want to learn something new (language, library, ORM) I have the same approach and it works really well.

Recently I thought about this idea a few times and I decided to share my code with you. Maybe you will like this way of learning :)