mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Rename
This commit is contained in:
parent
630be403c7
commit
f69363563d
@ -55,7 +55,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
|
||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||
@ -79,7 +79,7 @@ public class DataExportController {
|
||||
private SnapAdmin dbAdmin;
|
||||
|
||||
@Autowired
|
||||
private DbAdminRepository repository;
|
||||
private SnapAdminRepository repository;
|
||||
|
||||
@Autowired
|
||||
private ConsoleQueryRepository queryRepository;
|
||||
|
@ -56,7 +56,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
||||
import jakarta.validation.ConstraintViolationException;
|
||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||
import tech.ailef.snapadmin.external.SnapAdminProperties;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||
import tech.ailef.snapadmin.external.dbmapping.query.DbQueryResult;
|
||||
@ -84,14 +84,14 @@ import tech.ailef.snapadmin.internal.service.UserSettingsService;
|
||||
*/
|
||||
@Controller
|
||||
@RequestMapping(value= {"/${snapadmin.baseUrl}", "/${snapadmin.baseUrl}/"})
|
||||
public class DefaultDbAdminController {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DefaultDbAdminController.class);
|
||||
public class DefaultSnapAdminController {
|
||||
private static final Logger logger = LoggerFactory.getLogger(DefaultSnapAdminController.class);
|
||||
|
||||
@Autowired
|
||||
private SnapAdminProperties properties;
|
||||
|
||||
@Autowired
|
||||
private DbAdminRepository repository;
|
||||
private SnapAdminRepository repository;
|
||||
|
||||
@Autowired
|
||||
private SnapAdmin dbAdmin;
|
@ -37,7 +37,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
||||
import org.springframework.web.server.ResponseStatusException;
|
||||
|
||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||
@ -50,7 +50,7 @@ import tech.ailef.snapadmin.external.exceptions.DbAdminException;
|
||||
@RequestMapping(value = {"/${snapadmin.baseUrl}/download", "/${snapadmin.baseUrl}/download/"})
|
||||
public class FileDownloadController {
|
||||
@Autowired
|
||||
private DbAdminRepository repository;
|
||||
private SnapAdminRepository repository;
|
||||
|
||||
@Autowired
|
||||
private SnapAdmin dbAdmin;
|
||||
|
@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||
import tech.ailef.snapadmin.external.dto.AutocompleteSearchResult;
|
||||
|
||||
@ -45,7 +45,7 @@ public class AutocompleteController {
|
||||
private SnapAdmin dbAdmin;
|
||||
|
||||
@Autowired
|
||||
private DbAdminRepository repository;
|
||||
private SnapAdminRepository repository;
|
||||
|
||||
/**
|
||||
* Returns a list of entities from a given table that match an input query.
|
||||
|
@ -61,14 +61,14 @@ import tech.ailef.snapadmin.external.exceptions.InvalidPageException;
|
||||
* Implements the basic CRUD operations (and some more)
|
||||
*/
|
||||
@Component
|
||||
public class DbAdminRepository {
|
||||
public class SnapAdminRepository {
|
||||
@Autowired
|
||||
private JdbcTemplate jdbcTemplate;
|
||||
|
||||
@Autowired
|
||||
private SnapAdmin dbAdmin;
|
||||
|
||||
public DbAdminRepository() {
|
||||
public SnapAdminRepository() {
|
||||
}
|
||||
|
||||
/**
|
Loading…
x
Reference in New Issue
Block a user