public enum UniqueIndexNulls
How the unique index Hibernate creates over nullable columns treats a null in the key, by database. This is one fact about each database, and everything that has to agree with the index asks it here:
('en', null) twice is a violation, and only a key that is null in every column is left out.
Oracle indexes that way. On Db2 for Linux, UNIX and Windows Hibernate creates the index with
exclude null keys: a unique index treats a null as any other value, and exclude null keys leaves out
only a key that is null in every column, which comes to the same.create unique where not null index, under which nulls are not equal to each other.| Type Params | Return Type | Name and description |
|---|---|---|
|
public static UniqueIndexNulls |
forDialect(org.hibernate.dialect.Dialect dialect)Returns how the unique index of the database the dialect is for treats a null in its key. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
Returns how the unique index of the database the dialect is for treats a null in its key.