We are using JBoss and XDoclet in our project. While getting data from using entity bean, if a DB column has null value, the abstract get method is throwing NullPointerException. Instead, is there a way to tell JBoss through XDoclet tags or XML files, to convert null value to 0 while getting data from numeric columns in the database table?