Errata

Getting Started with Roo

Errata for Getting Started with Roo

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.

Color Key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted by Date submitted
PDF Page 2
Last sentence of 3rd paragraph

JVM is misspelled.

Patrick Gardella  Oct 26, 2011 
8
structure that confirms with the directory structure

s/confirms/conforms/

Anonymous  Aug 11, 2011 
PDF Page 12
United States

File name is really Customer_Roo_Jpa_Entity.java not
Customer_Roo_Entity.java

David Biesack  Mar 28, 2012 
PDF Page 12
United States

should mention that the CRUD are in the $ENTITY_Roo_Jpa_ActiveRecord class (not in the Customer class/aj)

David Biesack  Mar 28, 2012 
PDF Page 14
3rd paragraph

The lastName field was already added above using "field string --fieldName lastName --notNull".

I think the author means the "firstName" field but wrote lastName.

Franz Becker  Sep 05, 2011 
PDF Page 14
5th paragraph

field date --fieldName dateOfOrder

miss --type java.util.Date

Jose Diaz  Nov 09, 2011 
PDF Page 14
2nd paragraph

The book wrongly states that Roo will generate the corresponding accessors and mutators in the Customer_Roo_Entity.aj file. The generated stuff will go into the Customer_Roo_JavaBean.aj file instead.

Ervin Varga  Feb 14, 2012 
PDF Page 15
2nd paragraph

The book misses to point out an important detail. If Spring responds with a message "Spring Roo automatic add-on discovery service currently unavailable" then you should first issue 'download status' and read the instructions there. To enable the Spring Roo download features you need to type 'download accept terms of use'. Only after performing this last step you will get the output as indicated in the book.

Ervin Varga  Feb 14, 2012 
PDF Page 15
4th paragraph

The book's source code is not inside the "roo_crm.sql" file, but in the "ddl.sql" file instead.

Ervin Varga  Feb 14, 2012 
PDF Page 15
6th paragraph

There is an extra "the" (marked with ***) in the sentence cited below in the specified paragraph.

"Unzip it where you?d like and ***the*** run the h2.bat or h2.sh script inside the bin folder."

Ervin Varga  Feb 14, 2012 
PDF Page 15
United States

h2 default is ~/test so one must change the path on login to jdbc:h2:tcp://localhost/~/roo_crm
before submitting the SQL

David Biesack  Mar 28, 2012 
PDF Page 15
United States

"move all the fields" s/b
"move all the fields and methods"

Note that there is an Eclipse "bug" here. Eclipse tries to be too clever; i.e. when moving cartOrders from Customer_Roo_DbManaged.aj to Customer.java, simply pasting the text adds Company. prefix to all the fields and methods, such as :

@OneToMany(mappedBy = "customerId")
private Set<CartOrder> Customer.cartOrders;


public Set<CartOrder> Customer.getCartOrders() {
return cartOrders;
}

so this must be cleaned up. (STS 2.9.1.RELEASE Build Id: 201203221000 which is based on Eclipse 3.7.2:
Version: 3.7.2.v20120120-1414-7z8gFcuFMP7BW5XTz0jLTnz0l9B1
Build id: M20120208-0800

David Biesack  Mar 28, 2012 
PDF Page 15
United States

Also, after copying the fields/methods from the .aj to the .java entity classes, LineItem ends up with syntax errors

@ManyToOne
@JoinColumn
@NotNull

as undefined (but they can be fixed w/o too much difficulty via Eclipse quick fix)

David Biesack  Mar 28, 2012 
PDF Page 16
United States

In Riddle me This, it would be nice to show a JUnit test, including the setup - how to do the dependency injection necessary to access the data source, etc.

David Biesack  Mar 28, 2012 
PDF Page 17
United States

Sentence begins "Has always featured great support for JPA,", missing the subject (Java? Spring? What?)

David Biesack  Mar 28, 2012 
PDF Page 19
United States

I get:
roo> addon search graph
1 found, sorted by rank; T = trusted developer; R = Roo 1.2 compatible
ID T R DESCRIPTION -------------------------------------------------------------
01 Y - 1.1.0.RELEASE Roo Addon for Graph Persistence using Spring-Data-Graph
...
roo> addon install id --searchResultId 01
roo> Unsatisfied requirement(s):
---------------------------
(&(package=org.springframework.roo.support.style)(version>=1.1.0))
org-springframework-datastore-neo4j-roo-addon
(&(package=org.springframework.roo.addon.entity)(version>=1.1.0))
org-springframework-datastore-neo4j-roo-addon

David Biesack  Mar 28, 2012 
PDF Page 21
4th paragraph

The command must be:

graph relationship --from ~.model.CartOrder --to ~.model.Product --via ~.model.LineItem --fieldName items --type "ITEMS" --cardinality ONE_TO_MANY

Jose Diaz  Nov 09, 2011 
PDF Page 23
United States

s/driven/drive/

David Biesack  Mar 28, 2012 
PDF Page 35
last sentence

There is an extra "the" (marked with ***) in the last sentence. Here is an excerpt:

"...clicking on ***the*** them..."

Ervin Varga  Feb 15, 2012 
PDF Page 1214
United States

entity --class ~.model.CartOrder
should be
entity jpa --class ~.model.CartOrder

David Biesack  Mar 28, 2012