Skip to content

Commit

Permalink
minor comparisons/edits, mostly formatting in domain definition Book
Browse files Browse the repository at this point in the history
  • Loading branch information
eitansuez committed Sep 22, 2017
1 parent d8d6d32 commit 91d390d
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,11 @@
import java.io.Serializable;

@NoArgsConstructor @Getter @Setter
@EqualsAndHashCode(of={"itemNumber"})
@ToString(of={"itemNumber", "title", "author"})
@EqualsAndHashCode(of = {"itemNumber"})
@ToString(of = {"itemNumber", "title", "author"})
@AllArgsConstructor
@Builder(toBuilder = true)
public class Book implements Serializable {

private static final long serialVersionUID = 7526471155622776147L;

private long itemNumber;
Expand Down
4 changes: 2 additions & 2 deletions domain/src/main/java/io/pivotal/bookshop/domain/Book.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import java.io.Serializable;

@NoArgsConstructor @Getter @Setter
@EqualsAndHashCode(of={"itemNumber"})
@ToString(of={"itemNumber", "title", "author"})
@EqualsAndHashCode(of = {"itemNumber"})
@ToString(of = {"itemNumber", "title", "author"})
@AllArgsConstructor
@Builder(toBuilder = true)
public class Book implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@

import java.io.Serializable;

@NoArgsConstructor
@Getter
@Setter
@NoArgsConstructor @Getter @Setter
@EqualsAndHashCode(of = {"itemNumber"})
@ToString(of = {"itemNumber", "title", "author"})
@AllArgsConstructor
@Builder
@Builder(toBuilder = true)
public class Book implements Serializable {
private static final long serialVersionUID = 7526471155622776147L;

private long itemNumber;
private String author, title, description;
private float retailCost;
private int yearPublished;
private String author, title, description;

}
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@

import java.io.Serializable;

@NoArgsConstructor
@Getter
@Setter
@NoArgsConstructor @Getter @Setter
@EqualsAndHashCode(of = {"itemNumber"})
@ToString(of = {"itemNumber", "title", "author"})
@AllArgsConstructor
@Builder
@Builder(toBuilder = true)
public class Book implements Serializable {
private static final long serialVersionUID = 7526471155622776147L;

private long itemNumber;
private String author, title, description;
private float retailCost;
private int yearPublished;
private String author, title, description;

}
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,12 @@
//TODO-10: Create a repository interface in the io.pivotal.bookshop.buslogic package that implements CrudRepository
// Declare a 'findBy' method that will find all Book items that match the specified author.

@NoArgsConstructor
@Getter
@Setter
@EqualsAndHashCode(of={"itemNumber"})
@ToString(of={"itemNumber", "title", "author"})
@NoArgsConstructor @Getter @Setter
@EqualsAndHashCode(of = {"itemNumber"})
@ToString(of = {"itemNumber", "title", "author"})
@AllArgsConstructor
@Builder(toBuilder = true)
public class Book implements Serializable {

private static final long serialVersionUID = 7526471155622776147L;

private long itemNumber;
Expand Down

0 comments on commit 91d390d

Please sign in to comment.