a small case for hibernate project