Browse Source
Merge pull request #4405 from ShvaykaD/fix/event-and-component-descriptor-dao
fixed typo in AbstractComponentDescriptorInsertRepository and AbstractEventInsertRepository
pull/4416/head
Igor Kulikov
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
2 additions and
2 deletions
dao/src/main/java/org/thingsboard/server/dao/sql/component/AbstractComponentDescriptorInsertRepository.java
dao/src/main/java/org/thingsboard/server/dao/sql/event/AbstractEventInsertRepository.java
@ -51,11 +51,11 @@ public abstract class AbstractComponentDescriptorInsertRepository implements Com
TransactionStatus transaction = getTransactionStatus ( TransactionDefinition . PROPAGATION_REQUIRES_NEW ) ;
try {
componentDescriptorEntity = processSaveOrUpdate ( entity , insertOrUpdateOnUniqueKeyConflict ) ;
transactionManager . commit ( transaction ) ;
} catch ( Throwable th ) {
log . trace ( "Could not execute the update statement for Component Descriptor with id {}, name {} and entityType {}" , entity . getUuid ( ) , entity . getName ( ) , entity . getType ( ) ) ;
transactionManager . rollback ( transaction ) ;
}
transactionManager . commit ( transaction ) ;
} else {
log . trace ( "Could not execute the insert statement for Component Descriptor with id {}, name {} and entityType {}" , entity . getUuid ( ) , entity . getName ( ) , entity . getType ( ) ) ;
}
@ -51,11 +51,11 @@ public abstract class AbstractEventInsertRepository implements EventInsertReposi
TransactionStatus transaction = getTransactionStatus ( TransactionDefinition . PROPAGATION_REQUIRES_NEW ) ;
try {
eventEntity = processSaveOrUpdate ( entity , insertOrUpdateOnUniqueKeyConflict ) ;
transactionManager . commit ( transaction ) ;
} catch ( Throwable th ) {
log . trace ( "Could not execute the update statement for Entity with entityId {} and entityType {}" , entity . getEventUid ( ) , entity . getEventType ( ) ) ;
transactionManager . rollback ( transaction ) ;
}
transactionManager . commit ( transaction ) ;
} else {
log . trace ( "Could not execute the insert statement for Entity with entityId {} and entityType {}" , entity . getEventUid ( ) , entity . getEventType ( ) ) ;
}