2 Replies Latest reply on Sep 12, 2002 12:12 PM by Andrew Eiler

    How to make ForeignKey Nullable

    leela Newbie

      Can some one tell me how to make Foreign key Nullable.

      I have a foreign Key type Integer and whenever i try to insert value. it gives me an Exception " column cannot be null". as for CMR fields cannot be set untill EjbPostCreate in Ejb and JBoss sends to database before ejbPostcreate() method and tries to insert Null in foreignKey field.


      Ur response appreciated.
      Thanks.
      Leela