Skip to content
Snippets Groups Projects
Commit 4540f2ba authored by nfcalabria's avatar nfcalabria
Browse files

started development of collections feature

parent 1f031420
No related branches found
No related tags found
No related merge requests found
/*
* This file is part of vospace-rest
* Copyright (C) 2021 Istituto Nazionale di Astrofisica
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.inaf.oats.vospace.persistence;
import it.inaf.oats.vospace.persistence.model.NodeCollection;
import javax.sql.DataSource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Repository;
/**
*
* @author Nicola Fulvio Calabria <nicola.calabria at inaf.it>
*/
@Repository
public class CollectionsDAO {
private final JdbcTemplate jdbcTemplate;
@Autowired
public CollectionsDAO(DataSource dataSource) {
jdbcTemplate = new JdbcTemplate(dataSource);
}
void insertNewCollection(NodeCollection collection) {
}
}
...@@ -42,8 +42,6 @@ import org.springframework.stereotype.Repository; ...@@ -42,8 +42,6 @@ import org.springframework.stereotype.Repository;
@Repository @Repository
public class NodeDAO { public class NodeDAO {
private static final Logger LOG = LoggerFactory.getLogger(DeleteNodeController.class);
@Value("${vospace-authority}") @Value("${vospace-authority}")
private String authority; private String authority;
......
/*
* This file is part of vospace-rest
* Copyright (C) 2021 Istituto Nazionale di Astrofisica
* SPDX-License-Identifier: GPL-3.0-or-later
*/
package it.inaf.oats.vospace.persistence.model;
/**
*
* @author Nicola Fulvio Calabria <nicola.calabria at inaf.it>
*/
public class NodeCollection {
private Long id;
private String name;
private String ownerId;
public NodeCollection(Long id, String name, String ownerId) {
this.id = id;
this.name = name;
this.ownerId = ownerId;
}
public Long getId() {
return id;
}
public void setId(Long id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getOwnerId() {
return ownerId;
}
public void setOwnerId(String ownerId) {
this.ownerId = ownerId;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment