There are two ways to map Java objects to a relational table:
Using XML based hibernate mapping
Annotation-based hibernate mapping