|
|
|
@ -6,6 +6,7 @@
|
|
|
|
|
*/ |
|
|
|
|
package com.fr.third.org.hibernate.mapping; |
|
|
|
|
import java.util.Iterator; |
|
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
import com.fr.third.org.hibernate.dialect.Dialect; |
|
|
|
|
import com.fr.third.org.hibernate.internal.util.StringHelper; |
|
|
|
@ -58,7 +59,8 @@ public class PrimaryKey extends Constraint {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public String sqlConstraintString(Dialect dialect) { |
|
|
|
|
StringBuilder buf = new StringBuilder("primary key ("); |
|
|
|
|
List<Column> columnList = getColumns(); |
|
|
|
|
StringBuilder buf = new StringBuilder(dialect.getPrimaryKeyString(columnList)).append(" ("); |
|
|
|
|
Iterator iter = getColumnIterator(); |
|
|
|
|
while ( iter.hasNext() ) { |
|
|
|
|
buf.append( ( (Column) iter.next() ).getQuotedName(dialect) ); |
|
|
|
|