Make getGroupbyMapping synchronized to prevent
race conditions.
This commit is contained in:
parent
9646764d5f
commit
4738cc516e
1 changed files with 5 additions and 1 deletions
|
@ -488,7 +488,11 @@ public class DbMapping implements Updatable {
|
||||||
return null;
|
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)
|
if (subnodesRel == null || subnodesRel.groupby == null)
|
||||||
return null;
|
return null;
|
||||||
if (groupbyMapping == null) {
|
if (groupbyMapping == null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue