In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.
Code words in text are shown as follows: "The id
field is annotated with both @Id
and @GeneratedValue
".
A block of code is set as follows:
public App(String name, String image, String description) { this.name = name; this.image = image; this.description = description; }
When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:
@Column(length=1000)
@Field
private String description;
Any command-line input or output is written as follows:
mvn archetype:generate -DgroupId=com.packpub.hibernatesearch.chapter1 -DartifactId=chapter1 -DarchetypeArtifactId=maven-archetype-webapp