javax.persistence.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?
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String[] | |
| public String | |
| public UniqueConstraintHolder | |
| public UniqueConstraintHolder |
| columns | back to summary |
|---|---|
| private String[] columns | |
| name | back to summary |
|---|---|
| private String name | |
| UniqueConstraintHolder | back to summary |
|---|---|
| public UniqueConstraintHolder() | |
| getColumns | back to summary |
|---|---|
| public String[] getColumns() | |
| getName | back to summary |
|---|---|
| public String getName() | |
| setColumns | back to summary |
|---|---|
| public UniqueConstraintHolder setColumns(String[] columns) | |
| setName | back to summary |
|---|---|
| public UniqueConstraintHolder setName(String name) | |