Revision 71b9b632
Added by Andreas Müller almost 3 years ago
cdmlib-model/src/main/java/eu/etaxonomy/cdm/strategy/match/MatchStrategyFactory.java | ||
---|---|---|
66 | 66 |
|
67 | 67 |
parsedTeamMatchStrategy.setMatchMode("hasMoreMembers", MatchMode.EQUAL); |
68 | 68 |
|
69 |
//TODO is this correct? |
|
70 | 69 |
parsedTeamMatchStrategy.setMatchMode("protectedCollectorTitleCache", MatchMode.EQUAL_OR_FIRST_NULL); |
71 | 70 |
parsedTeamMatchStrategy.setMatchMode("protectedNomenclaturalTitleCache", MatchMode.EQUAL); |
72 | 71 |
|
73 |
String[] equalOrNullParams = new String[]{"collectorTitle"};
|
|
72 |
String[] equalOrNullParams = new String[]{}; |
|
74 | 73 |
for(String param : equalOrNullParams){ |
75 | 74 |
parsedTeamMatchStrategy.setMatchMode(param, MatchMode.EQUAL_OR_FIRST_NULL); |
76 | 75 |
} |
... | ... | |
286 | 285 |
|
287 | 286 |
//TODO contact does not yet works, also not with EQUAL_OR_ONE_NULL, leads to agent.id=? or agent.id is null query |
288 | 287 |
//better should be even handled with MATCH.Equal_OR_ONE_NULL |
289 |
String[] equalOrNullParams = new String[]{"collectorTitle"};
|
|
288 |
String[] equalOrNullParams = new String[]{}; |
|
290 | 289 |
for(String param : equalOrNullParams){ |
291 | 290 |
matchStrategy.setMatchMode(param, MatchMode.EQUAL_OR_FIRST_NULL); |
292 | 291 |
} |
Also available in: Unified diff
ref #4311 first implementation for TeamOrPersonBase.collectorTitle