Использование Lombok
This commit is contained in:
5
pom.xml
5
pom.xml
@@ -82,6 +82,11 @@
|
|||||||
<artifactId>jsoup</artifactId>
|
<artifactId>jsoup</artifactId>
|
||||||
<version>1.8.3</version>
|
<version>1.8.3</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.projectlombok</groupId>
|
||||||
|
<artifactId>lombok</artifactId>
|
||||||
|
<version>1.16.16</version>
|
||||||
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -4,39 +4,26 @@
|
|||||||
*/
|
*/
|
||||||
package kinosearch.kinosearch3.spider;
|
package kinosearch.kinosearch3.spider;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
import lombok.Setter;
|
||||||
import org.springframework.data.annotation.Id;
|
import org.springframework.data.annotation.Id;
|
||||||
import org.springframework.data.mongodb.core.mapping.Document;
|
import org.springframework.data.mongodb.core.mapping.Document;
|
||||||
|
|
||||||
@Document(collection = "cinema")
|
@Document(collection = "cinema")
|
||||||
|
@NoArgsConstructor
|
||||||
public class CinemaDocument {
|
public class CinemaDocument {
|
||||||
@Id
|
@Id
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
|
@Getter @Setter
|
||||||
private String fileName;
|
private String fileName;
|
||||||
|
|
||||||
|
@Getter @Setter
|
||||||
private String typeWarez;
|
private String typeWarez;
|
||||||
|
|
||||||
public CinemaDocument() {
|
|
||||||
}
|
|
||||||
|
|
||||||
public CinemaDocument(String fileName, String typeWarez) {
|
public CinemaDocument(String fileName, String typeWarez) {
|
||||||
this.fileName = fileName;
|
this.fileName = fileName;
|
||||||
this.typeWarez = typeWarez;
|
this.typeWarez = typeWarez;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFileName() {
|
|
||||||
return fileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setFileName(String fileName) {
|
|
||||||
this.fileName = fileName;
|
|
||||||
}
|
|
||||||
|
|
||||||
public String getTypeWarez() {
|
|
||||||
return typeWarez;
|
|
||||||
}
|
|
||||||
|
|
||||||
public void setTypeWarez(String typeWarez) {
|
|
||||||
this.typeWarez = typeWarez;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user