25.02.2015 Views

Introducing Spring Framework

Introducing Spring Framework

Introducing Spring Framework

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 9 ■ Adding Persistence to Your <strong>Spring</strong> Application<br />

public void setName(String name) {<br />

this.name = name;<br />

}<br />

public Type getType() {<br />

return type;<br />

}<br />

public void setType(Type type) {<br />

this.type = type;<br />

}<br />

public String getLocation() {<br />

return location;<br />

}<br />

public void setLocation(String location) {<br />

this.location = location;<br />

}<br />

public String getDescription() {<br />

return description;<br />

}<br />

public void setDescription(String description) {<br />

this.description = description;<br />

}<br />

public Date getCreated() {<br />

return created;<br />

}<br />

public void setCreated(Date created) {<br />

this.created = created;<br />

}<br />

public Date getModified() {<br />

return modified;<br />

}<br />

public void setModified(Date modified) {<br />

this.modified = modified;<br />

}<br />

public String toString(){<br />

StringBuilder builder = new StringBuilder("Documents(");<br />

builder.append("id: ");<br />

builder.append(documentId);<br />

builder.append("name: ");<br />

builder.append(name);<br />

builder.append(", type: ");<br />

builder.append(type);<br />

113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!