Commit 1df35205 authored by Jan Wagemakers's avatar Jan Wagemakers

disable REST

parent e891d8b0
......@@ -29,7 +29,7 @@ dependencies {
compile('org.springframework.boot:spring-boot-starter-jdbc')
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-data-rest")
// compile("org.springframework.boot:spring-boot-starter-data-rest")
compile('com.fazecast:jSerialComm:[2.0.0,3.0.0)')
runtime('com.h2database:h2')
testCompile('org.springframework.boot:spring-boot-starter-test')
......
......@@ -6,15 +6,13 @@
package be.janwagemakers.controlthermostatbluetooth.Repository;
import be.janwagemakers.controlthermostatbluetooth.Entity.Configuration;
import be.janwagemakers.controlthermostatbluetooth.Entity.Rule;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
/**
*
* @author jan
*/
@RepositoryRestResource
// @RepositoryRestResource
public interface ConfigurationRepository extends PagingAndSortingRepository<Configuration, Integer>{
}
......
......@@ -7,13 +7,12 @@ package be.janwagemakers.controlthermostatbluetooth.Repository;
import be.janwagemakers.controlthermostatbluetooth.Entity.Rule;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
/**
*
* @author jan
*/
@RepositoryRestResource
// @RepositoryRestResource
public interface RuleRepository extends PagingAndSortingRepository<Rule, Integer>{
}
......
......@@ -6,15 +6,13 @@
package be.janwagemakers.controlthermostatbluetooth.Repository;
import be.janwagemakers.controlthermostatbluetooth.Entity.User;
import org.springframework.data.rest.core.annotation.RepositoryRestResource;
import org.springframework.data.repository.PagingAndSortingRepository;
/**
*
* @author jan
*/
@RepositoryRestResource
// @RepositoryRestResource
public interface UserRepository extends PagingAndSortingRepository<User, Integer> {
}
......@@ -27,7 +27,7 @@ import java.util.*;
* @author jan
*/
@org.springframework.stereotype.Controller
public class ShowController {
public class HTMLController {
@Autowired private UserRepository userRepository;
@Autowired private RuleRepository ruleRepository;
......
......@@ -39,5 +39,5 @@ create table if not exists user (
--
alter table rule add constraint if not exists FK55ew2b76r531nnmw97mm96yt2 foreign key (user_id) references user;
--
INSERT INTO configuration (airport, low_temp) VALUES ('EBAW', '12.0');
-- Hard coded at the moment until Front end works
INSERT INTO configuration (airport, low_temp) VALUES ('EBAW', '16.0');
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment