|
@ -103,7 +103,7 @@ public class Book { |
|
|
targetEntity = BookHash.class |
|
|
targetEntity = BookHash.class |
|
|
) |
|
|
) |
|
|
@PrimaryKeyJoinColumn |
|
|
@PrimaryKeyJoinColumn |
|
|
private BookHash bookHash; |
|
|
|
|
|
|
|
|
private BookHash bookhash; |
|
|
|
|
|
|
|
|
//////////////////// |
|
|
//////////////////// |
|
|
// Attributes with hard-coded constraints |
|
|
// Attributes with hard-coded constraints |
|
@ -234,9 +234,13 @@ public class Book { |
|
|
public void setId(Long id) { |
|
|
public void setId(Long id) { |
|
|
this.id = id; |
|
|
this.id = id; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void setBookHash(BookHash bookHash) { |
|
|
|
|
|
this.bookHash = bookHash; |
|
|
|
|
|
|
|
|
/* |
|
|
|
|
|
@JsonProperty( |
|
|
|
|
|
value = "bookhash" |
|
|
|
|
|
) |
|
|
|
|
|
*/ |
|
|
|
|
|
public void setBookHash(BookHash bookhash) { |
|
|
|
|
|
this.bookhash = bookhash; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void setTitle(String title) { |
|
|
public void setTitle(String title) { |
|
@ -272,8 +276,9 @@ public class Book { |
|
|
return id; |
|
|
return id; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@JsonIgnore |
|
|
public BookHash getBookHash() { |
|
|
public BookHash getBookHash() { |
|
|
return bookHash; |
|
|
|
|
|
|
|
|
return bookhash; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public String getTitle() { |
|
|
public String getTitle() { |
|
@ -321,7 +326,7 @@ public class Book { |
|
|
@Override |
|
|
@Override |
|
|
public String toString() { |
|
|
public String toString() { |
|
|
return "[" + "id: " + this.id + ", " + |
|
|
return "[" + "id: " + this.id + ", " + |
|
|
"bookhash_id: " + this.bookHash + ", " + |
|
|
|
|
|
|
|
|
"bookhash_id: " + this.bookhash + ", " + |
|
|
"title: " + this.title + ", " + |
|
|
"title: " + this.title + ", " + |
|
|
"author: " + this.author + ", " + |
|
|
"author: " + this.author + ", " + |
|
|
"year: " + this.year + ", " + |
|
|
"year: " + this.year + ", " + |
|
|