1 Reply Latest reply on Aug 15, 2005 4:02 AM by epbernard

    Problem altering tables

    micmnm

      I already have a table created by EJB3 and Hibernate. When adding a new field to the object model like this:

      @Column( name = "NEW_FIELD", columnDefinition = "DOUBLE default 0", nullable = false )

      this not done right and nullable is set to True for the new field and all previous records have this field set to null (not the desired default value).
      How can I make sure the new field will have nullable set to false ?

      Thanks for help.