ConcurrentModificationException during schema creation

Description

java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextEntry(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at java.util.HashMap$EntryIterator.next(Unknown Source)
at org.hibernate.mapping.Table.cleanseUniqueKeyMap(Table.java:291)
at org.hibernate.mapping.Table.cleanseUniqueKeyMapIfNeeded(Table.java:262)
at org.hibernate.mapping.Table.getUniqueKeys(Table.java:251)
at org.hibernate.mapping.Table.getUniqueKeyIterator(Table.java:247)
at org.hibernate.mapping.Table.sqlCreateString(Table.java:530)
at org.hibernate.cfg.Configuration.generateSchemaCreationScript(Configuration.java:1028)
at org.hibernate.tool.hbm2ddl.SchemaExport.<init>(SchemaExport.java:125)
at org.hibernate.tool.hbm2x.Hbm2DDLExporter.doStart(Hbm2DDLExporter.java:165)
at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:96)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)

Problematic code was introduced with
- One-to-One mapping with foreign key in target table and foreign key b…

Environment

SQLServer2008

Status

Assignee

Strong Liu

Reporter

Guenther Demetz

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Major
Configure