Hibernate naturalID

Posted by DD on Stack Overflow See other posts from Stack Overflow or by DD
Published on 2010-04-01T10:06:47Z Indexed on 2010/04/01 10:13 UTC
Read the original article Hit count: 250

Filed under:

Hibernate doesnt seem to generate a notnull constraint on a field I marked as naturalID. Is this normal?

@MappedSuperclass
public class AbstractDomainObject extends PersistentObject {

 @NaturalId
 private String code;

DB Schema: CONSTRAINT SYS_CT_47 UNIQUE(CODE) There is no not null constraint here.

© Stack Overflow or respective owner

Related posts about hibernate