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