|
@ -15,12 +15,8 @@ import java.util.Map; |
|
|
import java.util.Properties; |
|
|
import java.util.Properties; |
|
|
import java.util.stream.Collectors; |
|
|
import java.util.stream.Collectors; |
|
|
|
|
|
|
|
|
import javax.persistence.EntityManager; |
|
|
|
|
|
import javax.persistence.PersistenceContext; |
|
|
|
|
|
|
|
|
|
|
|
import org.ros.chatto.model.ApplicationStatus; |
|
|
import org.ros.chatto.model.ApplicationStatus; |
|
|
import org.ros.chatto.model.UserSession; |
|
|
import org.ros.chatto.model.UserSession; |
|
|
import org.ros.chatto.repository.ApplicationStatusRepository; |
|
|
|
|
|
import org.ros.chatto.repository.UserSessionRepository; |
|
|
import org.ros.chatto.repository.UserSessionRepository; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
|
import org.springframework.beans.factory.annotation.Value; |
|
@ -64,9 +60,6 @@ public class DBInitializerService { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private UserSessionRepository userSessionRepository; |
|
|
private UserSessionRepository userSessionRepository; |
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private ApplicationStatusRepository applicationStatusRepository; |
|
|
|
|
|
|
|
|
|
|
|
private final String tablesCreatedKey = "tables_created"; |
|
|
private final String tablesCreatedKey = "tables_created"; |
|
|
private final String rolesPopulatedKey = "roles_populated"; |
|
|
private final String rolesPopulatedKey = "roles_populated"; |
|
|
|
|
|
|
|
|