Revision 337563aa
Added by Andreas Müller over 6 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/persistence/hibernate/PostMergeEntityListener.java | ||
---|---|---|
33 | 33 |
public class PostMergeEntityListener implements MergeEventListener { |
34 | 34 |
private static final long serialVersionUID = 1565797119368313987L; |
35 | 35 |
|
36 |
private static Map<Session, Set<CdmBase>> newEntitiesMap = new ConcurrentHashMap<Session, Set<CdmBase>>();
|
|
36 |
private static Map<Session, Set<CdmBase>> newEntitiesMap = new ConcurrentHashMap<>(); |
|
37 | 37 |
|
38 | 38 |
public static void addSession(Session session) { |
39 |
newEntitiesMap.put(session, new HashSet<CdmBase>());
|
|
39 |
newEntitiesMap.put(session, new HashSet<>()); |
|
40 | 40 |
} |
41 | 41 |
|
42 | 42 |
public static void removeSession(Session session) { |
Also available in: Unified diff
cleanup