Compare commits
	
		
			2 commits
		
	
	
		
			218fa6553e
			...
			c66bf41d72
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | c66bf41d72 | ||
|   | 45f4e802d2 | 
					 5 changed files with 8 additions and 24 deletions
				
			
		|  | @ -18,7 +18,7 @@ services: | |||
|     postgres: | ||||
|         image: postgres | ||||
|         volumes: | ||||
|             - ./files/postgresql:/var/lib/postgresql | ||||
|             - ./files/postgresql/data:/var/lib/postgresql/data | ||||
|         environment: | ||||
|             - POSTGRES_USER=mari | ||||
|             - POSTGRES_PASSWORD=example | ||||
|  |  | |||
|  | @ -1,19 +0,0 @@ | |||
| package ru.redrise.marinesco.library; | ||||
| 
 | ||||
| import org.springframework.beans.factory.DisposableBean; | ||||
| 
 | ||||
| public class ParseThread implements DisposableBean, Runnable{ | ||||
|     private static volatile boolean running; | ||||
| 
 | ||||
|     @Override | ||||
|     public void run() { | ||||
|         running = true; | ||||
|         // TODO Auto-generated method stub | ||||
|          | ||||
|     } | ||||
|      | ||||
|     @Override | ||||
|     public void destroy(){ | ||||
|         running = false; | ||||
|     } | ||||
| } | ||||
|  | @ -1,4 +1,4 @@ | |||
| package ru.redrise.marinesco.library; | ||||
| package ru.redrise.marinesco.library.web; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
|  | @ -10,6 +10,8 @@ import org.springframework.web.bind.annotation.RequestMapping; | |||
| 
 | ||||
| import ru.redrise.marinesco.data.AuthorRepository; | ||||
| import ru.redrise.marinesco.data.BookRepository; | ||||
| import ru.redrise.marinesco.library.Author; | ||||
| import ru.redrise.marinesco.library.Book; | ||||
| 
 | ||||
| @Controller | ||||
| @RequestMapping("/author") | ||||
|  | @ -1,4 +1,4 @@ | |||
| package ru.redrise.marinesco.library; | ||||
| package ru.redrise.marinesco.library.web; | ||||
| 
 | ||||
| import org.springframework.stereotype.Controller; | ||||
| import org.springframework.ui.Model; | ||||
|  | @ -7,6 +7,7 @@ import org.springframework.web.bind.annotation.PathVariable; | |||
| import org.springframework.web.bind.annotation.RequestMapping; | ||||
| 
 | ||||
| import ru.redrise.marinesco.data.BookRepository; | ||||
| import ru.redrise.marinesco.library.Book; | ||||
| 
 | ||||
| @Controller | ||||
| @RequestMapping("/book") | ||||
|  | @ -1,4 +1,4 @@ | |||
| package ru.redrise.marinesco; | ||||
| package ru.redrise.marinesco.library.web; | ||||
| 
 | ||||
| import java.util.List; | ||||
| 
 | ||||
|  | @ -36,7 +36,7 @@ public class SearchController { | |||
|         List<Book> books = inpEntryRepository.findByTitleContainingIgnoreCase(search); | ||||
|         model.addAttribute("books", books); | ||||
| 
 | ||||
|         List<Book> bookSeries = inpEntryRepository.findByTitleContainingIgnoreCase(search); | ||||
|         List<Book> bookSeries = inpEntryRepository.findBySeriesContainingIgnoreCase(search); | ||||
|         model.addAttribute("series", bookSeries); | ||||
|          | ||||
|         List<Author> authors = authorRepository.findByAuthorNameContainingIgnoreCase(search); | ||||
		Loading…
	
		Reference in a new issue