purged or commented out redundant code
This commit is contained in:
parent
64b4b7e404
commit
2e73088d2a
3 changed files with 13 additions and 15 deletions
|
@ -1,4 +1,5 @@
|
||||||
package me.imsonmia.epqapi;
|
package me.imsonmia.epqapi;
|
||||||
|
|
||||||
import org.slf4j.Logger;
|
import org.slf4j.Logger;
|
||||||
import org.slf4j.LoggerFactory;
|
import org.slf4j.LoggerFactory;
|
||||||
import org.springframework.boot.SpringApplication;
|
import org.springframework.boot.SpringApplication;
|
||||||
|
@ -7,10 +8,10 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
@SpringBootApplication
|
@SpringBootApplication
|
||||||
public class EpqapiApplication extends Thread {
|
public class EpqapiApplication extends Thread {
|
||||||
private static Logger logger = LoggerFactory.getLogger(EpqapiApplication.class);
|
private static Logger logger = LoggerFactory.getLogger(EpqapiApplication.class);
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
logger.info("Main Spring Boot process running in thread!");
|
logger.info("Main Spring Boot process running in thread!");
|
||||||
SpringApplication.run(EpqapiApplication.class, args);
|
SpringApplication.run(EpqapiApplication.class, args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,8 +4,6 @@ import java.time.Instant;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
|
||||||
import javax.swing.text.html.Option;
|
|
||||||
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.http.ResponseEntity;
|
import org.springframework.http.ResponseEntity;
|
||||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||||
|
@ -87,13 +85,13 @@ public class UserController {
|
||||||
}
|
}
|
||||||
return messages;
|
return messages;
|
||||||
}
|
}
|
||||||
|
// @PatchMapping("/user/{id}")
|
||||||
@PatchMapping("/user/{id}")
|
// boolean changeUserProperties(@PathVariable(value = "id") Long userId,
|
||||||
boolean changeUserProperties(@PathVariable(value = "id") Long userId, @RequestBody User newUser) {
|
// @RequestBody User newUser) {
|
||||||
if (!userRepository.existsById(userId)) {
|
// if (!userRepository.existsById(userId)) {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
userRepository.save(newUser);
|
// userRepository.save(newUser);
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,15 +7,14 @@ import jakarta.persistence.criteria.CriteriaBuilder;
|
||||||
import jakarta.persistence.criteria.CriteriaQuery;
|
import jakarta.persistence.criteria.CriteriaQuery;
|
||||||
import jakarta.persistence.criteria.Predicate;
|
import jakarta.persistence.criteria.Predicate;
|
||||||
import jakarta.persistence.criteria.Root;
|
import jakarta.persistence.criteria.Root;
|
||||||
import me.imsonmia.epqapi.model.Message;
|
|
||||||
|
|
||||||
public class MessageSpecification implements Specification {
|
public class MessageSpecification implements Specification {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
@Nullable
|
||||||
public Predicate toPredicate(Root root, CriteriaQuery query, CriteriaBuilder builder) {
|
public Predicate toPredicate(Root root, CriteriaQuery query, CriteriaBuilder builder) {
|
||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
|
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue