Basics :
For the purposes of this article, we're going to assume that the reader
is already familiar with Hibernate configuration and usage on the
server-side. If you'd like to know more about Hibernate and how it works.
Let's start out with a simple example. Suppose we're developing an
online music record store. An obvious domain object in such a
application would be a Record object that we would want
to persist on the server-side and display on the client-side. We would
also want users to be able to create accounts and add music records to
their profiles online. It would also make sense for us to create an Account object that we'll want to persist. So let's create these two classes.