EclipseLink nullable column but unique -


is possible define column eclipselink, can null if value != null exists, there should unique values within column. how can model that?

thank you

andre

what type of value?

i enforce uniqueness in object model, not in database. if want restrict in database, add check constraint in own ddl script.

in java can use enum or type code or value , restrict through set methods.

eclipselink have @objecttypeconverter allows conversion between set of values.


Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

What is the difference between data design and data model(ERD) -

ios - Can NSManagedObject conform to NSCoding -