ERROR 2011-09-27 13:07:22,945 (o.h.u.JDBCExceptionReporter:78) ---> ERROR: null value in column "persistantid" violates not-null constraint ERROR 2011-09-27 13:07:22,946 (u.a.c.r.e.e.ResourceCategoryAttributeAssociationDefinition:73) ---> Could not save new resource metadata could not insert: [uk.ac.cardiff.model.resource.ResourceMetadata]; SQL [insert into resource_metadata (resourceId, internal, external) values (?, ?, ?)]; constraint [null]; nested exception is org.hibernate.exception.ConstraintViolationException: could not insert: [uk.ac.cardiff.model.resource.ResourceMetadata] create table resource_metadata ( persistantId int8 not null, resourceId varchar(255), internal bool, external bool, primary key (persistantId) );