package com.syzton.sunread.dto.bookshelf;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.hibernate.validator.constraints.Length;
import com.syzton.sunread.model.bookshelf.BookShelfOperation;
import com.syzton.sunread.model.bookshelf.OperationType;
/*
* @Date 2015/03/13
* @Author Morgan-Leon
*/
public class BookShelfOperationDTO {
private Long id;
@Length(max = BookShelfOperation.MAX_LENGTH_DESCRIPTION)
private String description;
private Long creation_time;
private Long modification_time;
private OperationType operationType;
private Long bookshelf;
public BookShelfOperationDTO() {
}
public Long getId() {
return id;
}
public void setId(Long id){
this.id = id;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public Long getCreationTime() {
return creation_time;
}
public void setCreationTime(Long create_time) {
this.creation_time = create_time;
}
public Long getModificationTime() {
return modification_time;
}
public void setModificationTime(Long modification_time) {
this.modification_time = modification_time;
}
public OperationType getOperationType() {
return operationType;
}
public void setOperationType(OperationType operationType) {
this.operationType = operationType;
}
public Long getBookshelf(){
return bookshelf;
}
public void setBookshelf(Long bookshelf) {
this.bookshelf = bookshelf;
}
@Override
public String toString() {
return ToStringBuilder.reflectionToString(this);
}
}