What are the different ways to map attribute of POJO class to table ?

Ans: Two ways are there
                                         1) hbm.xml
                                         2)by using annotations in pojo class.