Skip to content
Snippets Groups Projects
Commit 9f6db720 authored by Addin Munawwar's avatar Addin Munawwar
Browse files

feat: init book collection model

parent 74669326
No related merge requests found
...@@ -13,6 +13,12 @@ ...@@ -13,6 +13,12 @@
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
</properties> </properties>
<dependencies> <dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.30</version>
</dependency>
<dependency> <dependency>
<groupId>com.sun.xml.ws</groupId> <groupId>com.sun.xml.ws</groupId>
<artifactId>jaxws-rt</artifactId> <artifactId>jaxws-rt</artifactId>
......
package com.soap.model;
public class Book {
}
package com.soap.model;
import java.sql.Timestamp;
import java.util.List;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.Setter;
@Getter
@Setter
@AllArgsConstructor
public class BookCollection {
public int collectionId;
public User createdBy;
public String name;
public String desc;
public Timestamp createdAt;
public Timestamp updatedAt;
public boolean isDeleted;
public Timestamp deletedAt;
public List<Book> books;
public List<User> subscribers;
@Override
public String toString() {
return "BookCollection [collectionId=" + collectionId + ", createdBy=" + createdBy + ", name=" + name
+ ", desc=" + desc + ", createdAt=" + createdAt + ", updatedAt=" + updatedAt + ", isDeleted="
+ isDeleted + ", deletedAt=" + deletedAt + "]";
}
}
package com.soap.model;
public class User {
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment