I have a cmp entity bean with a primitive persistent field ( int shares ) . The column associated with the field in the table is nullable. When I call getShares() , the container throws a NPE whenever the value in the column shares is null.
It works fine in Weblogic. Why should the getter method throw a NPE?
you can't have nulls in columns that map to Java primitive types