Exemple #1
0
 public UniqueKey createUniqueKey(List keyColumns) {
   String keyName = "UK" + uniqueColumnString(keyColumns.iterator());
   UniqueKey uk = getOrCreateUniqueKey(keyName);
   uk.addColumns(keyColumns.iterator());
   return uk;
 }
 public UniqueKey createUniqueKey(List keyColumns) {
   String keyName = Constraint.generateName("UK_", this, keyColumns);
   UniqueKey uk = getOrCreateUniqueKey(keyName);
   uk.addColumns(keyColumns.iterator());
   return uk;
 }