public class UniqueConstraintHolder
extends java.lang.Object
UniqueConstraint
annotations are handled via second pass. I do not
understand the reasons why at this time, so here I use a holder object to hold the information
needed to create the unique constraint. The ability to name it is new, and so the code used to
simply keep this as a String array (the column names).
Isn't this ultimately the same as org.hibernate.cfg.IndexOrUniqueKeySecondPass?Constructor and Description |
---|
UniqueConstraintHolder() |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getColumns() |
java.lang.String |
getName() |
UniqueConstraintHolder |
setColumns(java.lang.String[] columns) |
UniqueConstraintHolder |
setName(java.lang.String name) |
public java.lang.String getName()
public UniqueConstraintHolder setName(java.lang.String name)
public java.lang.String[] getColumns()
public UniqueConstraintHolder setColumns(java.lang.String[] columns)
Copyright © 2001-2018 Red Hat, Inc. All Rights Reserved.