0 Replies Latest reply on Sep 5, 2005 8:00 AM by achetan

    EJB 2.0 : CMP bean with NULLABLE NUMBER database column

    achetan

      Hi,

      I am using oracle as DB. There is a table which has a NULLABLE NUMBER(38) column. I have created a Entity Bean on same with accessor methods for column.

      public abstract int getMyCol();
      public abstract void setMyCol(int c);

      When i am calling bean.getMyCol() , its throwing NullPointerException when DB column value is NULL.

      Please suggest the solution.
      Thanks and regards
      Chetan