Class UniqueConstraintHolder
- java.lang.Object
-
- org.hibernate.boot.model.internal.UniqueConstraintHolder
-
public class UniqueConstraintHolder extends 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 Summary
Constructors Constructor Description UniqueConstraintHolder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String[]
getColumns()
String
getName()
boolean
isNameExplicit()
UniqueConstraintHolder
setColumns(String[] columns)
UniqueConstraintHolder
setName(String name)
UniqueConstraintHolder
setName(String name, boolean nameExplicit)
-
-
-
Method Detail
-
getName
public String getName()
-
setName
public UniqueConstraintHolder setName(String name)
-
isNameExplicit
public boolean isNameExplicit()
-
getColumns
public String[] getColumns()
-
setColumns
public UniqueConstraintHolder setColumns(String[] columns)
-
setName
public UniqueConstraintHolder setName(String name, boolean nameExplicit)
-
-