From 525074af15ca597ee43c2f317eb2400cf1cb13df Mon Sep 17 00:00:00 2001 From: Simon Date: Mon, 30 Nov 2020 22:58:14 +0100 Subject: [PATCH] PossibleCandidates get saved to their own database now CHANGED VotingController: - changed 'candidateSaving' possibleCandidates get Located by name and category and get saved now CHANGED PossibleCandidateRepository: - removed 'findByNameAndCategoryID' - added 'findByNameAndCategory' ADDED addingCandidates.css: - added basic styling CHANGED voting.css: - bug that div gets cut off resolved CHANGED addingCandidates.html: - changed display method from table to div CHANGED: voting.html: - added div to style the site (bugfix) --- logs/Voting.log | 1263 ++++++++++++++--- .../controller/VotingController.java | 7 +- .../PossibleCandidateRepository.java | 3 +- .../static/styles/addingCandidates.css | 64 + src/main/resources/static/styles/voting.css | 9 +- .../resources/templates/addingCandidates.html | 31 +- src/main/resources/templates/voting.html | 24 +- 7 files changed, 1204 insertions(+), 197 deletions(-) create mode 100644 src/main/resources/static/styles/addingCandidates.css diff --git a/logs/Voting.log b/logs/Voting.log index c21ce64..45c44d8 100644 --- a/logs/Voting.log +++ b/logs/Voting.log @@ -1,160 +1,1103 @@ -2020-11-24 15:57:46,175 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 7303 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) -2020-11-24 15:57:46,183 INFO [restartedMain] No active profile set, falling back to default profiles: default -2020-11-24 15:57:46,317 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2020-11-24 15:57:46,322 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' -2020-11-24 15:57:46,954 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. -2020-11-24 15:57:47,039 INFO [restartedMain] Finished Spring Data repository scanning in 75ms. Found 3 JPA repository interfaces. -2020-11-24 15:57:48,123 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) -2020-11-24 15:57:48,136 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] -2020-11-24 15:57:48,137 INFO [restartedMain] Starting service [Tomcat] -2020-11-24 15:57:48,137 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] -2020-11-24 15:57:48,233 INFO [restartedMain] Initializing Spring embedded WebApplicationContext -2020-11-24 15:57:48,234 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1911 ms -2020-11-24 15:57:48,511 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] -2020-11-24 15:57:48,578 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final -2020-11-24 15:57:48,721 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} -2020-11-24 15:57:48,810 INFO [restartedMain] HikariPool-1 - Starting... -2020-11-24 15:57:49,406 INFO [restartedMain] HikariPool-1 - Start completed. -2020-11-24 15:57:49,441 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect -2020-11-24 15:57:50,272 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] -2020-11-24 15:57:50,278 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 15:57:50,300 INFO [restartedMain] LiveReload server is running on port 35729 -2020-11-24 15:57:50,764 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning -2020-11-24 15:57:50,910 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' -2020-11-24 15:57:51,202 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] -2020-11-24 15:57:51,229 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' -2020-11-24 15:57:51,243 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 5.551 seconds (JVM running for 6.58) -2020-11-24 15:58:06,947 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' -2020-11-24 15:58:06,948 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' -2020-11-24 15:58:06,959 INFO [http-nio-8000-exec-1] Completed initialization in 11 ms -2020-11-24 15:58:07,117 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 -2020-11-24 16:04:14,946 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is voting now -2020-11-24 16:05:33,091 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' -2020-11-24 16:05:33,093 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:05:33,098 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated... -2020-11-24 16:05:33,109 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed. -2020-11-24 16:05:36,416 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 8545 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) -2020-11-24 16:05:36,419 INFO [restartedMain] No active profile set, falling back to default profiles: default -2020-11-24 16:05:36,488 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable -2020-11-24 16:05:36,489 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' -2020-11-24 16:05:36,969 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. -2020-11-24 16:05:37,031 INFO [restartedMain] Finished Spring Data repository scanning in 53ms. Found 3 JPA repository interfaces. -2020-11-24 16:05:37,740 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) -2020-11-24 16:05:37,753 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] -2020-11-24 16:05:37,753 INFO [restartedMain] Starting service [Tomcat] -2020-11-24 16:05:37,754 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] -2020-11-24 16:05:37,822 INFO [restartedMain] Initializing Spring embedded WebApplicationContext -2020-11-24 16:05:37,823 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1332 ms -2020-11-24 16:05:37,983 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] -2020-11-24 16:05:38,011 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final -2020-11-24 16:05:38,098 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} -2020-11-24 16:05:38,162 INFO [restartedMain] HikariPool-1 - Starting... -2020-11-24 16:05:38,533 INFO [restartedMain] HikariPool-1 - Start completed. -2020-11-24 16:05:38,554 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect -2020-11-24 16:05:39,101 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] -2020-11-24 16:05:39,110 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:05:39,130 INFO [restartedMain] LiveReload server is running on port 35729 -2020-11-24 16:05:39,499 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning -2020-11-24 16:05:39,614 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' -2020-11-24 16:05:39,801 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] -2020-11-24 16:05:39,818 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' -2020-11-24 16:05:39,831 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.749 seconds (JVM running for 4.28) -2020-11-24 16:05:58,307 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' -2020-11-24 16:05:58,308 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' -2020-11-24 16:05:58,321 INFO [http-nio-8000-exec-1] Completed initialization in 13 ms -2020-11-24 16:05:58,485 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 -2020-11-24 16:06:04,643 WARN [http-nio-8000-exec-3] Resolved [org.springframework.web.bind.MissingServletRequestParameterException: Required String parameter 'name' is not present] -2020-11-24 16:06:20,710 INFO [Thread-4] Shutting down ExecutorService 'applicationTaskExecutor' -2020-11-24 16:06:20,712 INFO [Thread-4] Closing JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:06:20,715 INFO [Thread-4] HikariPool-1 - Shutdown initiated... -2020-11-24 16:06:20,723 INFO [Thread-4] HikariPool-1 - Shutdown completed. -2020-11-24 16:06:20,798 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 8545 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) -2020-11-24 16:06:20,799 INFO [restartedMain] No active profile set, falling back to default profiles: default -2020-11-24 16:06:20,941 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. -2020-11-24 16:06:20,957 INFO [restartedMain] Finished Spring Data repository scanning in 14ms. Found 3 JPA repository interfaces. -2020-11-24 16:06:21,118 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) -2020-11-24 16:06:21,119 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] -2020-11-24 16:06:21,120 INFO [restartedMain] Starting service [Tomcat] -2020-11-24 16:06:21,120 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] -2020-11-24 16:06:21,130 INFO [restartedMain] Initializing Spring embedded WebApplicationContext -2020-11-24 16:06:21,130 INFO [restartedMain] Root WebApplicationContext: initialization completed in 329 ms -2020-11-24 16:06:21,176 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] -2020-11-24 16:06:21,180 INFO [restartedMain] HikariPool-2 - Starting... -2020-11-24 16:06:21,212 INFO [restartedMain] HikariPool-2 - Start completed. -2020-11-24 16:06:21,213 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect -2020-11-24 16:06:21,290 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] -2020-11-24 16:06:21,291 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:06:21,298 INFO [restartedMain] LiveReload server is running on port 35729 -2020-11-24 16:06:21,413 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning -2020-11-24 16:06:21,456 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' -2020-11-24 16:06:21,525 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] -2020-11-24 16:06:21,538 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' -2020-11-24 16:06:21,546 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 0.776 seconds (JVM running for 45.995) -2020-11-24 16:06:21,549 INFO [restartedMain] Condition evaluation unchanged -2020-11-24 16:06:24,046 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' -2020-11-24 16:06:24,046 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' -2020-11-24 16:06:24,048 INFO [http-nio-8000-exec-1] Completed initialization in 1 ms -2020-11-24 16:15:57,443 INFO [Thread-11] Shutting down ExecutorService 'applicationTaskExecutor' -2020-11-24 16:15:57,444 INFO [Thread-11] Closing JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:15:57,444 INFO [Thread-11] HikariPool-2 - Shutdown initiated... -2020-11-24 16:15:57,451 INFO [Thread-11] HikariPool-2 - Shutdown completed. -2020-11-24 16:15:57,538 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 8545 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) -2020-11-24 16:15:57,538 INFO [restartedMain] No active profile set, falling back to default profiles: default -2020-11-24 16:15:57,693 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. -2020-11-24 16:15:57,706 INFO [restartedMain] Finished Spring Data repository scanning in 10ms. Found 3 JPA repository interfaces. -2020-11-24 16:15:57,833 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) -2020-11-24 16:15:57,834 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] -2020-11-24 16:15:57,835 INFO [restartedMain] Starting service [Tomcat] -2020-11-24 16:15:57,835 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] -2020-11-24 16:15:57,843 INFO [restartedMain] Initializing Spring embedded WebApplicationContext -2020-11-24 16:15:57,843 INFO [restartedMain] Root WebApplicationContext: initialization completed in 301 ms -2020-11-24 16:15:57,872 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] -2020-11-24 16:15:57,876 INFO [restartedMain] HikariPool-3 - Starting... -2020-11-24 16:15:57,901 INFO [restartedMain] HikariPool-3 - Start completed. -2020-11-24 16:15:57,901 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect -2020-11-24 16:15:57,966 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] -2020-11-24 16:15:57,966 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:15:57,973 INFO [restartedMain] LiveReload server is running on port 35729 -2020-11-24 16:15:58,060 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning -2020-11-24 16:15:58,094 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' -2020-11-24 16:15:58,138 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] -2020-11-24 16:15:58,141 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' -2020-11-24 16:15:58,148 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 0.64 seconds (JVM running for 622.597) -2020-11-24 16:15:58,150 INFO [restartedMain] Condition evaluation unchanged -2020-11-24 16:15:59,784 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' -2020-11-24 16:15:59,784 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' -2020-11-24 16:15:59,785 INFO [http-nio-8000-exec-1] Completed initialization in 1 ms -2020-11-24 16:17:20,082 INFO [Thread-17] Shutting down ExecutorService 'applicationTaskExecutor' -2020-11-24 16:17:20,084 INFO [Thread-17] Closing JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:17:20,085 INFO [Thread-17] HikariPool-3 - Shutdown initiated... -2020-11-24 16:17:20,090 INFO [Thread-17] HikariPool-3 - Shutdown completed. -2020-11-24 16:17:20,166 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 8545 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) -2020-11-24 16:17:20,168 INFO [restartedMain] No active profile set, falling back to default profiles: default -2020-11-24 16:17:20,286 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. -2020-11-24 16:17:20,297 INFO [restartedMain] Finished Spring Data repository scanning in 9ms. Found 3 JPA repository interfaces. -2020-11-24 16:17:20,411 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) -2020-11-24 16:17:20,413 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] -2020-11-24 16:17:20,413 INFO [restartedMain] Starting service [Tomcat] -2020-11-24 16:17:20,414 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] -2020-11-24 16:17:20,427 INFO [restartedMain] Initializing Spring embedded WebApplicationContext -2020-11-24 16:17:20,427 INFO [restartedMain] Root WebApplicationContext: initialization completed in 256 ms -2020-11-24 16:17:20,452 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] -2020-11-24 16:17:20,455 INFO [restartedMain] HikariPool-4 - Starting... -2020-11-24 16:17:20,476 INFO [restartedMain] HikariPool-4 - Start completed. -2020-11-24 16:17:20,476 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect -2020-11-24 16:17:20,546 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] -2020-11-24 16:17:20,547 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 16:17:20,551 INFO [restartedMain] LiveReload server is running on port 35729 -2020-11-24 16:17:20,635 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning -2020-11-24 16:17:20,666 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' -2020-11-24 16:17:20,717 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] -2020-11-24 16:17:20,726 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' -2020-11-24 16:17:20,734 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 0.598 seconds (JVM running for 705.183) -2020-11-24 16:17:20,742 INFO [restartedMain] Condition evaluation unchanged -2020-11-24 16:17:22,181 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' -2020-11-24 16:17:22,182 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' -2020-11-24 16:17:22,185 INFO [http-nio-8000-exec-1] Completed initialization in 3 ms -2020-11-24 17:06:28,369 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' -2020-11-24 17:06:28,370 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' -2020-11-24 17:06:28,371 INFO [SpringContextShutdownHook] HikariPool-4 - Shutdown initiated... -2020-11-24 17:06:28,377 INFO [SpringContextShutdownHook] HikariPool-4 - Shutdown completed. +2020-11-30 21:45:42,789 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 11711 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:45:42,792 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:45:42,860 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:45:42,861 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:45:43,313 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:45:43,364 INFO [restartedMain] Finished Spring Data repository scanning in 45ms. Found 4 JPA repository interfaces. +2020-11-30 21:45:44,091 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:45:44,100 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:45:44,101 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:45:44,101 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:45:44,170 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:45:44,170 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1308 ms +2020-11-30 21:45:44,354 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:45:44,410 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:45:44,538 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:45:44,614 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:45:45,012 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:45:45,037 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:45:47,390 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:45:47,398 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:45:47,414 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:45:47,771 WARN [restartedMain] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'votingController': Unsatisfied dependency expressed through field 'possibleCandidateRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryID(java.lang.String,java.lang.Long)! No property ID found for type Category! Did you mean 'id'? Traversed path: PossibleCandidate.category. +2020-11-30 21:45:47,772 INFO [restartedMain] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:45:47,775 INFO [restartedMain] HikariPool-1 - Shutdown initiated... +2020-11-30 21:45:47,785 INFO [restartedMain] HikariPool-1 - Shutdown completed. +2020-11-30 21:45:47,788 INFO [restartedMain] Stopping service [Tomcat] +2020-11-30 21:45:47,799 INFO [restartedMain] + +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. +2020-11-30 21:45:47,802 ERROR [restartedMain] Application run failed +org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'votingController': Unsatisfied dependency expressed through field 'possibleCandidateRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryID(java.lang.String,java.lang.Long)! No property ID found for type Category! Did you mean 'id'? Traversed path: PossibleCandidate.category. + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) + at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130) + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) + at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) + at com.github.cato447.AbizeitungVotingSystem.AbizeitungVotingSystemApplication.main(AbizeitungVotingSystemApplication.java:12) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:564) + at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryID(java.lang.String,java.lang.Long)! No property ID found for type Category! Did you mean 'id'? Traversed path: PossibleCandidate.category. + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) + ... 25 common frames omitted +Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryID(java.lang.String,java.lang.Long)! No property ID found for type Category! Did you mean 'id'? Traversed path: PossibleCandidate.category. + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:96) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:107) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:218) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:81) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lookupQuery(QueryExecutorMethodInterceptor.java:99) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$mapMethodsToQuery$1(QueryExecutorMethodInterceptor.java:92) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) + at java.base/java.util.Collections$UnmodifiableCollection$1.forEachRemaining(Collections.java:1056) + at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.mapMethodsToQuery(QueryExecutorMethodInterceptor.java:94) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$new$0(QueryExecutorMethodInterceptor.java:84) + at java.base/java.util.Optional.map(Optional.java:258) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.(QueryExecutorMethodInterceptor.java:84) + at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:331) + at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297) + at org.springframework.data.util.Lazy.getNullable(Lazy.java:212) + at org.springframework.data.util.Lazy.get(Lazy.java:94) + at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) + at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:144) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) + ... 35 common frames omitted +Caused by: org.springframework.data.mapping.PropertyReferenceException: No property ID found for type Category! Did you mean 'id'? Traversed path: PossibleCandidate.category. + at org.springframework.data.mapping.PropertyPath.(PropertyPath.java:94) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:382) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:358) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:392) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:416) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:416) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:358) + at org.springframework.data.mapping.PropertyPath.lambda$from$0(PropertyPath.java:311) + at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330) + at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:293) + at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:276) + at org.springframework.data.repository.query.parser.Part.(Part.java:82) + at org.springframework.data.repository.query.parser.PartTree$OrPart.lambda$new$0(PartTree.java:251) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) + at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.query.parser.PartTree$OrPart.(PartTree.java:252) + at org.springframework.data.repository.query.parser.PartTree$Predicate.lambda$new$0(PartTree.java:381) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) + at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.query.parser.PartTree$Predicate.(PartTree.java:382) + at org.springframework.data.repository.query.parser.PartTree.(PartTree.java:97) + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:89) + ... 61 common frames omitted +2020-11-30 21:46:27,912 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 11814 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:46:27,915 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:46:27,985 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:46:27,985 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:46:28,447 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:46:28,492 INFO [restartedMain] Finished Spring Data repository scanning in 38ms. Found 4 JPA repository interfaces. +2020-11-30 21:46:29,194 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:46:29,203 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:46:29,203 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:46:29,204 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:46:29,281 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:46:29,282 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1296 ms +2020-11-30 21:46:29,444 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:46:29,480 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:46:29,564 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:46:29,631 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:46:29,993 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:46:30,015 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:46:30,653 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:46:30,664 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:46:30,687 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:46:31,111 WARN [restartedMain] Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'votingController': Unsatisfied dependency expressed through field 'possibleCandidateRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryid(java.lang.String,java.lang.Long)! No property categoryid found for type PossibleCandidate! Did you mean 'category'? +2020-11-30 21:46:31,112 INFO [restartedMain] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:46:31,116 INFO [restartedMain] HikariPool-1 - Shutdown initiated... +2020-11-30 21:46:31,130 INFO [restartedMain] HikariPool-1 - Shutdown completed. +2020-11-30 21:46:31,132 INFO [restartedMain] Stopping service [Tomcat] +2020-11-30 21:46:31,146 INFO [restartedMain] + +Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. +2020-11-30 21:46:31,149 ERROR [restartedMain] Application run failed +org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'votingController': Unsatisfied dependency expressed through field 'possibleCandidateRepository'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryid(java.lang.String,java.lang.Long)! No property categoryid found for type PossibleCandidate! Did you mean 'category'? + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:643) + at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:130) + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1420) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:593) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:897) + at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:879) + at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:551) + at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) + at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) + at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:397) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) + at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) + at com.github.cato447.AbizeitungVotingSystem.AbizeitungVotingSystemApplication.main(AbizeitungVotingSystemApplication.java:12) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:564) + at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) +Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'possibleCandidateRepository' defined in com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository defined in @EnableJpaRepositories declared on AbizeitungVotingSystemApplication: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryid(java.lang.String,java.lang.Long)! No property categoryid found for type PossibleCandidate! Did you mean 'category'? + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1794) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:516) + at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:324) + at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) + at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:322) + at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202) + at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1307) + at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1227) + at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:640) + ... 25 common frames omitted +Caused by: java.lang.IllegalArgumentException: Failed to create query for method public abstract com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate com.github.cato447.AbizeitungVotingSystem.repositories.PossibleCandidateRepository.findByNameAndCategoryid(java.lang.String,java.lang.Long)! No property categoryid found for type PossibleCandidate! Did you mean 'category'? + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:96) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:107) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$CreateIfNotFoundQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:218) + at org.springframework.data.jpa.repository.query.JpaQueryLookupStrategy$AbstractQueryLookupStrategy.resolveQuery(JpaQueryLookupStrategy.java:81) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lookupQuery(QueryExecutorMethodInterceptor.java:99) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$mapMethodsToQuery$1(QueryExecutorMethodInterceptor.java:92) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133) + at java.base/java.util.Collections$UnmodifiableCollection$1.forEachRemaining(Collections.java:1056) + at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.mapMethodsToQuery(QueryExecutorMethodInterceptor.java:94) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.lambda$new$0(QueryExecutorMethodInterceptor.java:84) + at java.base/java.util.Optional.map(Optional.java:258) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.(QueryExecutorMethodInterceptor.java:84) + at org.springframework.data.repository.core.support.RepositoryFactorySupport.getRepository(RepositoryFactorySupport.java:331) + at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.lambda$afterPropertiesSet$5(RepositoryFactoryBeanSupport.java:297) + at org.springframework.data.util.Lazy.getNullable(Lazy.java:212) + at org.springframework.data.util.Lazy.get(Lazy.java:94) + at org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport.afterPropertiesSet(RepositoryFactoryBeanSupport.java:300) + at org.springframework.data.jpa.repository.support.JpaRepositoryFactoryBean.afterPropertiesSet(JpaRepositoryFactoryBean.java:144) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1853) + at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1790) + ... 35 common frames omitted +Caused by: org.springframework.data.mapping.PropertyReferenceException: No property categoryid found for type PossibleCandidate! Did you mean 'category'? + at org.springframework.data.mapping.PropertyPath.(PropertyPath.java:94) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:382) + at org.springframework.data.mapping.PropertyPath.create(PropertyPath.java:358) + at org.springframework.data.mapping.PropertyPath.lambda$from$0(PropertyPath.java:311) + at java.base/java.util.concurrent.ConcurrentMap.computeIfAbsent(ConcurrentMap.java:330) + at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:293) + at org.springframework.data.mapping.PropertyPath.from(PropertyPath.java:276) + at org.springframework.data.repository.query.parser.Part.(Part.java:82) + at org.springframework.data.repository.query.parser.PartTree$OrPart.lambda$new$0(PartTree.java:251) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) + at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.query.parser.PartTree$OrPart.(PartTree.java:252) + at org.springframework.data.repository.query.parser.PartTree$Predicate.lambda$new$0(PartTree.java:381) + at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195) + at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177) + at java.base/java.util.Spliterators$ArraySpliterator.forEachRemaining(Spliterators.java:948) + at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484) + at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474) + at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913) + at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) + at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578) + at org.springframework.data.repository.query.parser.PartTree$Predicate.(PartTree.java:382) + at org.springframework.data.repository.query.parser.PartTree.(PartTree.java:97) + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.(PartTreeJpaQuery.java:89) + ... 61 common frames omitted +2020-11-30 21:47:29,254 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 11927 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:47:29,257 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:47:29,322 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:47:29,323 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:47:29,731 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:47:29,775 INFO [restartedMain] Finished Spring Data repository scanning in 38ms. Found 4 JPA repository interfaces. +2020-11-30 21:47:30,371 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:47:30,379 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:47:30,380 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:47:30,380 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:47:30,444 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:47:30,444 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1121 ms +2020-11-30 21:47:30,593 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:47:30,623 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:47:30,704 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:47:30,761 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:47:31,076 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:47:31,094 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:47:31,638 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:47:31,643 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:47:31,654 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:47:31,950 INFO [restartedMain] setups +2020-11-30 21:47:32,132 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 21:47:32,244 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 21:47:32,413 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 21:47:32,431 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 21:47:32,442 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.496 seconds (JVM running for 3.995) +2020-11-30 21:47:41,657 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 21:47:41,658 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 21:47:41,663 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms +2020-11-30 21:47:41,679 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 21:47:45,593 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de +2020-11-30 21:47:45,593 ERROR [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is not allowed to vote +2020-11-30 21:49:53,138 WARN [http-nio-8000-exec-8] simon.bussmann@adolfinum.de +2020-11-30 21:49:53,146 INFO [http-nio-8000-exec-8] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:50:32,677 INFO [http-nio-8000-exec-9] +Id Name Votes Category_ID +1 Noelia 0 1 +2 Noelia 0 2 +3 Noelia 0 3 +4 Herr Niemeier 0 4 +5 Herr Niemeier 0 5 +6 Herr Niemeier 0 6 +7 Jerome 0 7 +8 Jerome 0 8 +9 Jerome 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:50:32,688 ERROR [http-nio-8000-exec-9] Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [1] did not match expected type [com.github.cato447.AbizeitungVotingSystem.entities.Category (n/a)]; nested exception is java.lang.IllegalArgumentException: Parameter value [1] did not match expected type [com.github.cato447.AbizeitungVotingSystem.entities.Category (n/a)]] with root cause +java.lang.IllegalArgumentException: Parameter value [1] did not match expected type [com.github.cato447.AbizeitungVotingSystem.entities.Category (n/a)] + at org.hibernate.query.spi.QueryParameterBindingValidator.validate(QueryParameterBindingValidator.java:54) + at org.hibernate.query.spi.QueryParameterBindingValidator.validate(QueryParameterBindingValidator.java:27) + at org.hibernate.query.internal.QueryParameterBindingImpl.validate(QueryParameterBindingImpl.java:90) + at org.hibernate.query.internal.QueryParameterBindingImpl.setBindValue(QueryParameterBindingImpl.java:55) + at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:490) + at org.hibernate.query.internal.AbstractProducedQuery.setParameter(AbstractProducedQuery.java:111) + at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.setParameter(CriteriaQueryTypeQueryAdapter.java:393) + at org.hibernate.query.criteria.internal.compile.CriteriaQueryTypeQueryAdapter.setParameter(CriteriaQueryTypeQueryAdapter.java:61) + at org.springframework.data.jpa.repository.query.QueryParameterSetter$BindableQuery.setParameter(QueryParameterSetter.java:319) + at org.springframework.data.jpa.repository.query.QueryParameterSetter$NamedOrIndexedQueryParameterSetter.lambda$setParameter$3(QueryParameterSetter.java:116) + at org.springframework.data.jpa.repository.query.QueryParameterSetter$ErrorHandling$1.execute(QueryParameterSetter.java:141) + at org.springframework.data.jpa.repository.query.QueryParameterSetter$NamedOrIndexedQueryParameterSetter.setParameter(QueryParameterSetter.java:116) + at org.springframework.data.jpa.repository.query.ParameterBinder.bind(ParameterBinder.java:82) + at org.springframework.data.jpa.repository.query.ParameterBinder.bind(ParameterBinder.java:74) + at org.springframework.data.jpa.repository.query.ParameterBinder.bindAndPrepare(ParameterBinder.java:95) + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.invokeBinding(PartTreeJpaQuery.java:324) + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery$QueryPreparer.createQuery(PartTreeJpaQuery.java:243) + at org.springframework.data.jpa.repository.query.PartTreeJpaQuery.doCreateQuery(PartTreeJpaQuery.java:106) + at org.springframework.data.jpa.repository.query.AbstractJpaQuery.createQuery(AbstractJpaQuery.java:226) + at org.springframework.data.jpa.repository.query.JpaQueryExecution$SingleEntityExecution.doExecute(JpaQueryExecution.java:196) + at org.springframework.data.jpa.repository.query.JpaQueryExecution.execute(JpaQueryExecution.java:88) + at org.springframework.data.jpa.repository.query.AbstractJpaQuery.doExecute(AbstractJpaQuery.java:154) + at org.springframework.data.jpa.repository.query.AbstractJpaQuery.execute(AbstractJpaQuery.java:142) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor$QueryMethodInvoker.invoke(QueryExecutorMethodInterceptor.java:195) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.doInvoke(QueryExecutorMethodInterceptor.java:152) + at org.springframework.data.repository.core.support.QueryExecutorMethodInterceptor.invoke(QueryExecutorMethodInterceptor.java:130) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.data.projection.DefaultMethodInvokingMethodInterceptor.invoke(DefaultMethodInvokingMethodInterceptor.java:80) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:367) + at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:118) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:139) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.data.jpa.repository.support.CrudMethodMetadataPostProcessor$CrudMethodMetadataPopulatingMethodInterceptor.invoke(CrudMethodMetadataPostProcessor.java:149) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:95) + at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) + at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:212) + at com.sun.proxy.$Proxy88.findByNameAndCategory(Unknown Source) + at com.github.cato447.AbizeitungVotingSystem.controller.VotingController.candidateSaving(VotingController.java:146) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) + at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) + at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) + at java.base/java.lang.reflect.Method.invoke(Method.java:564) + at org.springframework.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:190) + at org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:138) + at org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:105) + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:878) + at org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:792) + at org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:87) + at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1040) + at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:943) + at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006) + at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:909) + at javax.servlet.http.HttpServlet.service(HttpServlet.java:652) + at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883) + at javax.servlet.http.HttpServlet.service(HttpServlet.java:733) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) + at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) + at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) + at org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) + at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201) + at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:119) + at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193) + at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166) + at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202) + at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:97) + at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541) + at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:143) + at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92) + at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:78) + at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343) + at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374) + at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65) + at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868) + at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590) + at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49) + at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130) + at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630) + at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) + at java.base/java.lang.Thread.run(Thread.java:832) +2020-11-30 21:52:06,490 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 21:52:06,492 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:52:06,495 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated... +2020-11-30 21:52:06,502 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed. +2020-11-30 21:52:09,233 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 12366 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:52:09,235 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:52:09,296 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:52:09,296 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:52:09,743 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:52:09,786 INFO [restartedMain] Finished Spring Data repository scanning in 38ms. Found 4 JPA repository interfaces. +2020-11-30 21:52:10,412 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:52:10,419 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:52:10,420 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:52:10,420 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:52:10,494 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:52:10,494 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1198 ms +2020-11-30 21:52:10,653 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:52:10,684 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:52:10,766 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:52:10,824 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:52:11,125 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:52:11,143 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:52:11,688 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:52:11,695 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:52:11,707 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:52:12,014 INFO [restartedMain] setups +2020-11-30 21:52:12,179 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 21:52:12,297 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 21:52:12,457 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 21:52:12,471 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 21:52:12,481 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.53 seconds (JVM running for 3.999) +2020-11-30 21:52:16,736 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 21:52:16,736 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 21:52:16,743 INFO [http-nio-8000-exec-1] Completed initialization in 7 ms +2020-11-30 21:52:16,759 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 21:52:22,149 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 21:52:22,155 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:52:28,983 INFO [http-nio-8000-exec-4] +Id Name Votes Category_ID +1 Noelia 0 1 +2 Noelia 0 2 +3 N 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:52:41,423 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de +2020-11-30 21:52:41,432 INFO [http-nio-8000-exec-7] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:52:48,239 INFO [http-nio-8000-exec-8] +Id Name Votes Category_ID +1 Noelia 0 1 +2 Noelia 0 2 +3 N 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:53:22,458 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de +2020-11-30 21:53:22,464 INFO [http-nio-8000-exec-1] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:53:30,756 INFO [http-nio-8000-exec-2] +Id Name Votes Category_ID +1 Noelia 0 1 +2 Noelia 0 2 +3 N 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:54:05,222 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de +2020-11-30 21:54:05,229 INFO [http-nio-8000-exec-5] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:54:12,241 INFO [http-nio-8000-exec-6] +Id Name Votes Category_ID +1 Herr Niemeier 0 1 +2 0 2 +3 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:55:09,283 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 21:55:09,289 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:55:13,303 INFO [http-nio-8000-exec-10] +Id Name Votes Category_ID +1 Herr Niemeier 0 1 +2 0 2 +3 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:55:41,142 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 21:55:41,144 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:55:41,147 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated... +2020-11-30 21:55:41,154 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed. +2020-11-30 21:55:43,900 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 12572 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:55:43,903 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:55:43,968 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:55:43,969 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:55:44,413 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:55:44,459 INFO [restartedMain] Finished Spring Data repository scanning in 40ms. Found 4 JPA repository interfaces. +2020-11-30 21:55:45,102 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:55:45,109 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:55:45,109 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:55:45,109 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:55:45,171 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:55:45,171 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1201 ms +2020-11-30 21:55:45,312 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:55:45,341 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:55:45,426 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:55:45,505 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:55:45,806 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:55:45,826 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:55:46,375 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:55:46,381 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:55:46,393 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:55:46,715 INFO [restartedMain] setups +2020-11-30 21:55:46,875 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 21:55:46,967 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 21:55:47,124 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 21:55:47,139 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 21:55:47,148 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.515 seconds (JVM running for 4.003) +2020-11-30 21:55:57,231 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 21:55:57,231 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 21:55:57,237 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms +2020-11-30 21:55:57,251 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 21:55:59,787 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 21:55:59,793 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:56:03,980 INFO [http-nio-8000-exec-4] +Id Name Votes Category_ID +1 Herr Niemeier 0 1 +2 0 2 +3 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:56:03,988 WARN [http-nio-8000-exec-4] 1 +2020-11-30 21:57:03,682 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 21:57:03,685 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:57:03,688 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated... +2020-11-30 21:57:03,697 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed. +2020-11-30 21:57:06,366 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 12703 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 21:57:06,370 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 21:57:06,424 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 21:57:06,425 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 21:57:06,862 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 21:57:06,914 INFO [restartedMain] Finished Spring Data repository scanning in 45ms. Found 4 JPA repository interfaces. +2020-11-30 21:57:07,557 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 21:57:07,566 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 21:57:07,567 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 21:57:07,567 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 21:57:07,634 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 21:57:07,635 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1210 ms +2020-11-30 21:57:07,782 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 21:57:07,817 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 21:57:07,897 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 21:57:07,960 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 21:57:08,262 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 21:57:08,280 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 21:57:08,825 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 21:57:08,832 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 21:57:08,844 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 21:57:09,268 INFO [restartedMain] setups +2020-11-30 21:57:09,471 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 21:57:09,582 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 21:57:09,761 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 21:57:09,779 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 21:57:09,793 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.684 seconds (JVM running for 4.155) +2020-11-30 21:57:11,752 INFO [http-nio-8000-exec-2] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 21:57:11,753 INFO [http-nio-8000-exec-2] Initializing Servlet 'dispatcherServlet' +2020-11-30 21:57:11,761 INFO [http-nio-8000-exec-2] Completed initialization in 8 ms +2020-11-30 21:57:11,778 INFO [http-nio-8000-exec-2] User IP: 127.0.0.1 +2020-11-30 21:57:14,290 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de +2020-11-30 21:57:14,296 INFO [http-nio-8000-exec-1] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 21:57:18,247 INFO [http-nio-8000-exec-4] +Id Name Votes Category_ID +1 Herr Niemeier 0 1 +2 0 2 +3 0 3 +4 0 4 +5 0 5 +6 0 6 +7 0 7 +8 0 8 +9 0 9 +10 0 10 +11 0 11 +12 0 12 +13 0 13 +14 0 14 +15 0 15 +16 0 16 +17 0 17 +18 0 18 +19 0 19 +20 0 20 +21 0 21 +22 0 22 +23 0 23 +24 0 24 +25 0 25 +26 0 26 +27 0 27 +28 0 28 +29 0 29 +30 0 30 +31 0 31 +32 0 32 +33 0 33 +34 0 34 +35 0 35 +36 0 36 +37 0 37 +38 0 38 +39 0 39 +40 0 40 +41 0 41 +42 0 42 +43 0 43 +44 0 44 +45 0 45 +46 0 46 + +2020-11-30 21:57:18,256 WARN [http-nio-8000-exec-4] 1 +2020-11-30 22:01:06,945 INFO [Thread-4] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 22:01:06,947 INFO [Thread-4] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:01:06,952 INFO [Thread-4] HikariPool-1 - Shutdown initiated... +2020-11-30 22:01:06,958 INFO [Thread-4] HikariPool-1 - Shutdown completed. +2020-11-30 22:01:07,024 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 12703 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 22:01:07,024 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 22:01:07,152 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 22:01:07,162 INFO [restartedMain] Finished Spring Data repository scanning in 8ms. Found 4 JPA repository interfaces. +2020-11-30 22:01:07,304 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 22:01:07,305 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 22:01:07,306 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 22:01:07,307 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 22:01:07,320 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 22:01:07,320 INFO [restartedMain] Root WebApplicationContext: initialization completed in 294 ms +2020-11-30 22:01:07,374 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 22:01:07,377 INFO [restartedMain] HikariPool-2 - Starting... +2020-11-30 22:01:07,401 INFO [restartedMain] HikariPool-2 - Start completed. +2020-11-30 22:01:07,402 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 22:01:07,503 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 22:01:07,504 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:01:07,513 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 22:01:07,633 INFO [restartedMain] setups +2020-11-30 22:01:07,692 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 22:01:07,736 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 22:01:07,808 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 22:01:07,821 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 22:01:07,827 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 0.83 seconds (JVM running for 242.189) +2020-11-30 22:01:07,829 INFO [restartedMain] Condition evaluation unchanged +2020-11-30 22:01:11,986 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 22:01:11,986 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 22:01:11,990 INFO [http-nio-8000-exec-1] Completed initialization in 3 ms +2020-11-30 22:01:11,993 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 22:01:14,111 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:01:14,116 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:02:02,700 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de +2020-11-30 22:02:02,708 INFO [http-nio-8000-exec-5] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:02:28,200 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de +2020-11-30 22:02:28,205 INFO [http-nio-8000-exec-7] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:02:39,240 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:02:39,244 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:03:18,185 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de +2020-11-30 22:03:18,191 INFO [http-nio-8000-exec-1] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:04:08,285 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:04:08,289 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:05:09,515 WARN [http-nio-8000-exec-6] simon.bussmann@adolfinum.de +2020-11-30 22:05:09,520 INFO [http-nio-8000-exec-6] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:06:25,304 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:06:25,309 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:08:41,023 WARN [http-nio-8000-exec-2] simon.bussmann@adolfinum.de +2020-11-30 22:08:41,027 INFO [http-nio-8000-exec-2] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:09:10,204 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de +2020-11-30 22:09:10,210 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:09:26,729 WARN [http-nio-8000-exec-6] simon.bussmann@adolfinum.de +2020-11-30 22:09:26,734 INFO [http-nio-8000-exec-6] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:11:41,752 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:11:41,756 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:11:59,020 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de +2020-11-30 22:11:59,023 INFO [http-nio-8000-exec-1] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:12:28,352 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:12:28,356 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:12:48,885 WARN [http-nio-8000-exec-5] simon.bussmann@adolfinum.de +2020-11-30 22:12:48,889 INFO [http-nio-8000-exec-5] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:13:41,442 WARN [http-nio-8000-exec-7] simon.bussmann@adolfinum.de +2020-11-30 22:13:41,446 INFO [http-nio-8000-exec-7] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:14:11,749 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:14:11,752 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:14:24,216 WARN [http-nio-8000-exec-1] simon.bussmann@adolfinum.de +2020-11-30 22:14:24,219 INFO [http-nio-8000-exec-1] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:14:54,765 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:14:54,769 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:15:15,537 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 22:15:15,538 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:15:15,539 INFO [SpringContextShutdownHook] HikariPool-2 - Shutdown initiated... +2020-11-30 22:15:15,545 INFO [SpringContextShutdownHook] HikariPool-2 - Shutdown completed. +2020-11-30 22:19:59,087 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 15150 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 22:19:59,090 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 22:19:59,144 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 22:19:59,145 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 22:19:59,581 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 22:19:59,633 INFO [restartedMain] Finished Spring Data repository scanning in 46ms. Found 4 JPA repository interfaces. +2020-11-30 22:20:00,289 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 22:20:00,297 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 22:20:00,298 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 22:20:00,298 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 22:20:00,363 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 22:20:00,363 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1218 ms +2020-11-30 22:20:00,538 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 22:20:00,578 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 22:20:00,669 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 22:20:00,730 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 22:20:01,060 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 22:20:01,077 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 22:20:01,630 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 22:20:01,638 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:20:01,653 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 22:20:02,027 INFO [restartedMain] setups +2020-11-30 22:20:02,188 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 22:20:02,295 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 22:20:02,475 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 22:20:02,495 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 22:20:02,508 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.706 seconds (JVM running for 4.168) +2020-11-30 22:20:04,198 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 22:20:04,198 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 22:20:04,204 INFO [http-nio-8000-exec-1] Completed initialization in 6 ms +2020-11-30 22:20:04,219 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 22:20:08,008 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de +2020-11-30 22:20:08,013 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:20:54,259 WARN [http-nio-8000-exec-6] simon.bussmann@adolfinum.de +2020-11-30 22:20:54,268 INFO [http-nio-8000-exec-6] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:21:03,345 WARN [http-nio-8000-exec-8] 1 +2020-11-30 22:35:38,783 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:35:38,789 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:35:49,881 WARN [http-nio-8000-exec-6] simon.bussmann@adolfinum.de +2020-11-30 22:35:49,889 INFO [http-nio-8000-exec-6] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:36:24,090 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:36:24,096 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:37:41,198 INFO [SpringContextShutdownHook] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 22:37:41,201 INFO [SpringContextShutdownHook] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:37:41,206 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown initiated... +2020-11-30 22:37:41,214 INFO [SpringContextShutdownHook] HikariPool-1 - Shutdown completed. +2020-11-30 22:37:42,937 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 15849 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 22:37:42,939 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 22:37:42,996 INFO [restartedMain] Devtools property defaults active! Set 'spring.devtools.add-properties' to 'false' to disable +2020-11-30 22:37:42,997 INFO [restartedMain] For additional web related logging consider setting the 'logging.level.web' property to 'DEBUG' +2020-11-30 22:37:43,386 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 22:37:43,428 INFO [restartedMain] Finished Spring Data repository scanning in 35ms. Found 4 JPA repository interfaces. +2020-11-30 22:37:44,085 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 22:37:44,093 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 22:37:44,094 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 22:37:44,094 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 22:37:44,160 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 22:37:44,161 INFO [restartedMain] Root WebApplicationContext: initialization completed in 1164 ms +2020-11-30 22:37:44,313 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 22:37:44,345 INFO [restartedMain] HHH000412: Hibernate ORM core version 5.4.21.Final +2020-11-30 22:37:44,422 INFO [restartedMain] HCANN000001: Hibernate Commons Annotations {5.1.0.Final} +2020-11-30 22:37:44,484 INFO [restartedMain] HikariPool-1 - Starting... +2020-11-30 22:37:44,778 INFO [restartedMain] HikariPool-1 - Start completed. +2020-11-30 22:37:44,796 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 22:37:45,488 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 22:37:45,497 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:37:45,513 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 22:37:45,821 INFO [restartedMain] setups +2020-11-30 22:37:46,047 INFO [restartedMain] Voters successfully set up +2020-11-30 22:37:46,092 INFO [restartedMain] Categories successfully set up +2020-11-30 22:37:46,145 INFO [restartedMain] Candidates successfully set up +2020-11-30 22:37:46,178 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 22:37:46,268 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 22:37:46,415 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 22:37:46,432 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 22:37:46,441 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 3.755 seconds (JVM running for 4.202) +2020-11-30 22:37:51,721 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 22:37:51,721 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 22:37:51,726 INFO [http-nio-8000-exec-1] Completed initialization in 5 ms +2020-11-30 22:37:51,739 INFO [http-nio-8000-exec-1] User IP: 127.0.0.1 +2020-11-30 22:37:54,278 WARN [http-nio-8000-exec-3] simon.bussmann@adolfinum.de +2020-11-30 22:37:54,284 INFO [http-nio-8000-exec-3] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:44:18,869 WARN [http-nio-8000-exec-9] simon.bussmann@adolfinum.de +2020-11-30 22:44:18,873 INFO [http-nio-8000-exec-9] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:45:19,507 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de +2020-11-30 22:45:19,512 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is submitting candidates +2020-11-30 22:45:41,457 WARN [http-nio-8000-exec-6] 1 +2020-11-30 22:46:52,139 INFO [Thread-4] Shutting down ExecutorService 'applicationTaskExecutor' +2020-11-30 22:46:52,141 INFO [Thread-4] Closing JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:46:52,144 INFO [Thread-4] HikariPool-1 - Shutdown initiated... +2020-11-30 22:46:52,152 INFO [Thread-4] HikariPool-1 - Shutdown completed. +2020-11-30 22:46:52,219 INFO [restartedMain] Starting AbizeitungVotingSystemApplication on bitecoding-System-Product-Name with PID 15849 (/home/bitecoding/Code/GitHub/AbizeitungVotingSystem/target/classes started by bitecoding in /home/bitecoding/Code/GitHub/AbizeitungVotingSystem) +2020-11-30 22:46:52,220 INFO [restartedMain] No active profile set, falling back to default profiles: default +2020-11-30 22:46:52,315 INFO [restartedMain] Bootstrapping Spring Data JPA repositories in DEFAULT mode. +2020-11-30 22:46:52,324 INFO [restartedMain] Finished Spring Data repository scanning in 8ms. Found 4 JPA repository interfaces. +2020-11-30 22:46:52,458 INFO [restartedMain] Tomcat initialized with port(s): 8000 (http) +2020-11-30 22:46:52,460 INFO [restartedMain] Initializing ProtocolHandler ["http-nio-8000"] +2020-11-30 22:46:52,461 INFO [restartedMain] Starting service [Tomcat] +2020-11-30 22:46:52,461 INFO [restartedMain] Starting Servlet engine: [Apache Tomcat/9.0.38] +2020-11-30 22:46:52,471 INFO [restartedMain] Initializing Spring embedded WebApplicationContext +2020-11-30 22:46:52,471 INFO [restartedMain] Root WebApplicationContext: initialization completed in 249 ms +2020-11-30 22:46:52,511 INFO [restartedMain] HHH000204: Processing PersistenceUnitInfo [name: default] +2020-11-30 22:46:52,516 INFO [restartedMain] HikariPool-2 - Starting... +2020-11-30 22:46:52,536 INFO [restartedMain] HikariPool-2 - Start completed. +2020-11-30 22:46:52,536 INFO [restartedMain] HHH000400: Using dialect: org.hibernate.dialect.MySQL8Dialect +2020-11-30 22:46:52,628 INFO [restartedMain] HHH000490: Using JtaPlatform implementation: [org.hibernate.engine.transaction.jta.platform.internal.NoJtaPlatform] +2020-11-30 22:46:52,628 INFO [restartedMain] Initialized JPA EntityManagerFactory for persistence unit 'default' +2020-11-30 22:46:52,633 INFO [restartedMain] LiveReload server is running on port 35729 +2020-11-30 22:46:52,738 INFO [restartedMain] setups +2020-11-30 22:46:52,780 WARN [restartedMain] spring.jpa.open-in-view is enabled by default. Therefore, database queries may be performed during view rendering. Explicitly configure spring.jpa.open-in-view to disable this warning +2020-11-30 22:46:52,804 INFO [restartedMain] Initializing ExecutorService 'applicationTaskExecutor' +2020-11-30 22:46:52,859 INFO [restartedMain] Starting ProtocolHandler ["http-nio-8000"] +2020-11-30 22:46:52,866 INFO [restartedMain] Tomcat started on port(s): 8000 (http) with context path '' +2020-11-30 22:46:52,870 INFO [restartedMain] Started AbizeitungVotingSystemApplication in 0.671 seconds (JVM running for 550.631) +2020-11-30 22:46:52,872 INFO [restartedMain] Condition evaluation unchanged +2020-11-30 22:46:56,404 INFO [http-nio-8000-exec-1] Initializing Spring DispatcherServlet 'dispatcherServlet' +2020-11-30 22:46:56,404 INFO [http-nio-8000-exec-1] Initializing Servlet 'dispatcherServlet' +2020-11-30 22:46:56,407 INFO [http-nio-8000-exec-1] Completed initialization in 2 ms +2020-11-30 22:46:59,627 INFO [http-nio-8000-exec-2] User IP: 127.0.0.1 +2020-11-30 22:47:01,873 WARN [http-nio-8000-exec-4] simon.bussmann@adolfinum.de +2020-11-30 22:47:01,876 INFO [http-nio-8000-exec-4] simon.bussmann@adolfinum.de is voting now +2020-11-30 22:47:28,276 INFO [http-nio-8000-exec-6] simon.bussmann@adolfinum.de has voted! diff --git a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java index 9e4dcf4..8c28b5b 100644 --- a/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java +++ b/src/main/java/com/github/cato447/AbizeitungVotingSystem/controller/VotingController.java @@ -138,14 +138,15 @@ public class VotingController { @RequestMapping("/saveCandidates") public String candidateSaving(@ModelAttribute PossibleCandidateWrapper possibleCandidates){ - LOGGER.info(tableAction.logPossibleCandidates(possibleCandidates.getPossibleCandidates(), categoryRepository)); LinkedList posCandidates = possibleCandidates.getPossibleCandidates(); long index = 1; for (PossibleCandidate posCandidate : posCandidates){ if (posCandidate.getName() != "") { - if (possibleCandidateRepository.findByName(posCandidate.getName()) != null) { - PossibleCandidate p = possibleCandidateRepository.findByName(posCandidate.getName()); + if (possibleCandidateRepository.findByNameAndCategory(posCandidate.getName(), categoryRepository.findById(index).get()) != null) { + PossibleCandidate p = possibleCandidateRepository.findByNameAndCategory(posCandidate.getName(), categoryRepository.findById(index).get()); + LOGGER.warn(p.getVotes()); p.setVotes(p.getVotes() + 1); + possibleCandidateRepository.save(p); } else { PossibleCandidate possibleCandidate = new PossibleCandidate(posCandidate.getName(), categoryRepository.findById(index).get()); possibleCandidateRepository.save(possibleCandidate); diff --git a/src/main/java/com/github/cato447/AbizeitungVotingSystem/repositories/PossibleCandidateRepository.java b/src/main/java/com/github/cato447/AbizeitungVotingSystem/repositories/PossibleCandidateRepository.java index 572d24e..10bf456 100644 --- a/src/main/java/com/github/cato447/AbizeitungVotingSystem/repositories/PossibleCandidateRepository.java +++ b/src/main/java/com/github/cato447/AbizeitungVotingSystem/repositories/PossibleCandidateRepository.java @@ -1,5 +1,6 @@ package com.github.cato447.AbizeitungVotingSystem.repositories; +import com.github.cato447.AbizeitungVotingSystem.entities.Category; import com.github.cato447.AbizeitungVotingSystem.entities.PossibleCandidate; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -9,7 +10,7 @@ import java.util.Optional; @Repository public interface PossibleCandidateRepository extends JpaRepository { - public PossibleCandidate findByNameAndCategoryID(String name, Long category_id); + public PossibleCandidate findByNameAndCategory(String name, Category category); Optional findById(Long id); diff --git a/src/main/resources/static/styles/addingCandidates.css b/src/main/resources/static/styles/addingCandidates.css new file mode 100644 index 0000000..2744139 --- /dev/null +++ b/src/main/resources/static/styles/addingCandidates.css @@ -0,0 +1,64 @@ +body { + background-color: rgb(44, 49, 54); + font-family: Arial, Helvetica, sans-serif; +} + +.center-screen { + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + text-align: center; +} + +.centered { + background: transparent; + margin: 0 auto; + padding: 20px; + width: 100%; + overflow: auto; +} + +h1 { + margin-top: 5%; + color: #FFF; + margin-bottom: 5%; +} + +h2.categoryHeader { + color: #FFF; +} + +input { + background: #bb1515b2; + border: none; + color: #FFF; + font-size: .875rem; + font-weight: normal; + text-transform: uppercase; + text-align: left; + transition: opacity .25s .5s; +} + +#submitButton { + margin-top: 5%; + margin-bottom: 5%; + border: 0; + outline: 0; + background: #bb1515; + color: rgba(255, 255, 255, 0.85); + font-size: 2rem; + width: 500px; + letter-spacing: .0625rem; + border-radius: 12px; + box-shadow: 0 3px 5px 1px rgba(0, 0, 0, 0.25); + text-shadow: 0 -2px 0 rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255, 255, 255, 0.2); +} + +html, +body { + width: 100%; + height: 100%; + background-image: linear-gradient(to bottom right, #111E25 0%, #111 100%) fixed; + font-family: 'Lato', sans-serif; +} \ No newline at end of file diff --git a/src/main/resources/static/styles/voting.css b/src/main/resources/static/styles/voting.css index 2cec353..f2776cf 100644 --- a/src/main/resources/static/styles/voting.css +++ b/src/main/resources/static/styles/voting.css @@ -9,7 +9,14 @@ body { justify-content: center; align-items: center; text-align: center; - min-height: 100vh; +} + +.centered { + background: transparent; + margin: 0 auto; + padding: 20px; + width: 100%; + overflow: auto; } h1 { diff --git a/src/main/resources/templates/addingCandidates.html b/src/main/resources/templates/addingCandidates.html index 65484a4..a364299 100644 --- a/src/main/resources/templates/addingCandidates.html +++ b/src/main/resources/templates/addingCandidates.html @@ -4,29 +4,20 @@ Title + - -

Schlage für jede Kategorie eine/n Kandiadt/en vor:

-
-
- - - - - - - - - - - - - -
Kategorie Kandidat/in
+ +
+

Schlage für jede Kategorie eine/n Kandiadt/en vor:

+ +
+

+ +
-
-
+ + \ No newline at end of file diff --git a/src/main/resources/templates/voting.html b/src/main/resources/templates/voting.html index 4b9d0ba..9dbb4ea 100644 --- a/src/main/resources/templates/voting.html +++ b/src/main/resources/templates/voting.html @@ -44,20 +44,20 @@ input.value = voteIds; } - -

Wähle deine Kandidaten:

-
-

-
- +
+

Wähle deine Kandidaten:

+
+

+
+ +
+
+ + + +
-
- - - -
- \ No newline at end of file