We have the following constraint defined in sql server 2005:
USE [boIcomsSecurityAudit] GO ALTER TABLE [dbo].[tblSecurityAuditNote] ADD CONSTRAINT [DF_tblSecurityAuditNote_TimeStamp] DEFAULT (getdate()) FOR [TimeStamp]
public TblSecurityAuditNote(Integer siteId, Integer employeeNumber, String noteType, String noteText) { this.siteId = siteId; this.employeeNumber = employeeNumber; this.noteType = noteType; this.noteText = noteText; }
insert into tblsecurityauditnote(SITE_ID, EMPLOYEE_NUMBER, NoteType, NoteText) values (333, 74055, 'mojo jojo', 'text of a note')
there is no reference to 'default constraint' in the Hibernate 3.2.2 documentation:
http://www.hibernate.org/hib_docs/reference/en/html_single/