Project

General

Profile

« Previous | Next » 

Revision e1d0f581

Added by Andreas Müller over 5 years ago

ref #3992, ref #7713, ref #3990 Atomize last scrutiny references

View differences:

app-import/src/main/java/eu/etaxonomy/cdm/io/berlinModel/in/BerlinModelReferenceImport.java
310 310
					if ((i++ % modCount) == 0 && i!= 1 ){ logger.info("References handled: " + (i-1) + " in round -" );}
311 311

  
312 312
					Integer refId = rs.getInt("refId");
313
					Integer inRefFk = rs.getInt("inRefFk");
313
					Integer inRefFk = nullSafeInt(rs, "inRefFk");
314 314

  
315 315
					if (inRefFk != null){
316 316

  
......
324 324
							}
325 325
							thisRef.setInReference(inRef);
326 326
							refToSave.put(refId, thisRef);
327
							thisRef.setTitleCache(null);
328
							thisRef.getTitleCache();
327
							if(!thisRef.isProtectedTitleCache()){
328
							    thisRef.setTitleCache(null);
329
							    thisRef.getTitleCache();
330
							}
331
						}
332
						if(inRefFk.equals(0)){
333
						    logger.warn("InRefFk is 0 for refId "+ refId);
329 334
						}
330 335
					}
331 336

  

Also available in: Unified diff