Revision cc355ab4
Added by Andreas Müller over 15 years ago
cdmlib-persistence/src/main/java/eu/etaxonomy/cdm/database/PersistentTermInitializer.java | ||
---|---|---|
79 | 79 |
@PostConstruct |
80 | 80 |
@Override |
81 | 81 |
public void initialize(){ |
82 |
logger.debug("PersistentTermInitializer initialize()");
|
|
82 |
logger.debug("PersistentTermInitializer initialize start ...");
|
|
83 | 83 |
if (omit){ |
84 | 84 |
logger.info("PersistentTermInitializer.omit == true, returning without initializing terms"); |
85 | 85 |
return; |
... | ... | |
92 | 92 |
} |
93 | 93 |
|
94 | 94 |
} |
95 |
logger.debug("PersistentTermInitializer initialize end ..."); |
|
95 | 96 |
} |
96 | 97 |
|
97 | 98 |
protected void secondPass(Class clazz, UUID vocabularyUuid,Map<UUID,DefinedTermBase> terms) { |
... | ... | |
155 | 156 |
|
156 | 157 |
private void updateVocabulary(TermVocabulary vocabulary) { |
157 | 158 |
TransactionStatus txStatus = transactionManager.getTransaction(txDefinition); |
158 |
vocabularyDao.update(vocabulary);
|
|
159 |
vocabularyDao.update(vocabulary); |
|
159 | 160 |
transactionManager.commit(txStatus); |
160 | 161 |
} |
161 | 162 |
|
Also available in: Unified diff
make cache generator work