Originally posted by dmay chug: I just wanted to know what is the significance of not null attribute in mapping file .If present then what happens and if not then what . Thanks
The not-null attribute in the hbm file will be considered when the you are reverse engineering from your hbm file (i.e. creating schema using the hbm files). If the hbm file contains a not-null attribute, then during schema creation through reverse engineering, this constraint will be added on the database column.