|
|
|
@ -16,6 +16,7 @@ |
|
|
|
package org.thingsboard.server.dao; |
|
|
|
|
|
|
|
import org.springframework.boot.autoconfigure.domain.EntityScan; |
|
|
|
import org.springframework.context.annotation.ComponentScan; |
|
|
|
import org.springframework.context.annotation.Configuration; |
|
|
|
import org.springframework.data.jpa.repository.config.EnableJpaRepositories; |
|
|
|
import org.springframework.transaction.annotation.EnableTransactionManagement; |
|
|
|
@ -24,6 +25,7 @@ import org.thingsboard.server.dao.util.TbAutoConfiguration; |
|
|
|
|
|
|
|
@Configuration |
|
|
|
@TbAutoConfiguration |
|
|
|
@ComponentScan({"org.thingsboard.server.dao.sqlts.dictionary"}) |
|
|
|
@EnableJpaRepositories({"org.thingsboard.server.dao.sqlts.dictionary"}) |
|
|
|
@EntityScan({"org.thingsboard.server.dao.model.sqlts.dictionary"}) |
|
|
|
@EnableTransactionManagement |
|
|
|
|