Make getGroupbyMapping synchronized to prevent

race conditions.
This commit is contained in:
hns 2001-08-31 15:46:19 +00:00
parent 9646764d5f
commit 4738cc516e

View file

@ -488,7 +488,11 @@ public class DbMapping implements Updatable {
return null;
}
public DbMapping getGroupbyMapping () {
/**
* If subnodes are grouped by one of their properties, return the
* db-mapping with the right relations to create the group-by nodes
*/
public synchronized DbMapping getGroupbyMapping () {
if (subnodesRel == null || subnodesRel.groupby == null)
return null;
if (groupbyMapping == null) {