Recent activity
Subscribe to this feed
A comment on the question "Where to find @ManagedBean" in javaee6:
A comment on the question "Where to find @ManagedBean" in javaee6:
Nicolas,
I thought that Antonio would solve the problem for us.
I haven't found the answer.
It seems that we need some IsbnValidator class, e.g., something like listing 12-12.
But I don't know in which directory to put it.
Sorry,
Martin – Martin Schader, on August 28, 2009 07:44
Martin Schader replied on August 11, 2009 16:37 to the question "Where to find @ManagedBean" in javaee6:
Martin Schader asked a question in javaee6 on August 11, 2009 13:07:
Where to find @ManagedBeanWhere do I find the class javax.faces.model.ManagedBean that is needed in chapter 10?
I downloaded JSF 2.0.0 Beta 2 but didn't find it in jsf-api.jar or jsf-impl.jar.
Martin Schader marked one of Antonio Goncalves' replies in javaee6 as useful. Antonio Goncalves replied to the question "Problem with EJBContainer - embeddable glassfish".
Martin Schader replied on August 11, 2009 08:10 to the question "Problem with EJBContainer - embeddable glassfish" in javaee6:
-
Martin Schader started following the question "Problem with EJBContainer - embeddable glassfish" in javaee6.
Martin Schader asked a question in javaee6 on July 22, 2009 10:08:
Having clauses revisitedPage 142.
Perhaps you want to change the HAVIN clause to a clause specifying a search condition over the grouping items or aggregate functions that apply to grouping items.
E.g.,
...group by c.address.country having c.address.country <> 'UK'
Otherwise, it is not correct and doesn't work.
Martin Schader asked a question in javaee6 on July 22, 2009 09:55:
id variables in subqueriesPage 141
It looks like the identification variable in a subquery need to be different from the variables in the query.
I.e., replace
WHERE c.age = (SELECT MIN(c.age) FROM Customer c)
by
WHERE c.age = (SELECT MIN(cust.age) FROM Customer cust)
Martin Schader asked a question in javaee6 on July 22, 2009 09:26:
two remarksPage 138
Perhaps you want to change
.... WHERE b.title = "H2G2"
to
.... WHERE b.title = 'H2G2'
(single quotes for string literals)
and
Perhaps you want to change the name of the subdirectory jqpl to jpql in the source code of chapter04.
Martin Schader asked a question in javaee6 on July 22, 2009 07:43:
merge and change vs. change and mergeOkay, so Listing 4-17 works.
But... why doesn't a simple reordering of the statements (first merge, then set new value - which seems to be the natural thing to do since then the customer is, again, managed) work?
E.g.
...
tx.begin();
em.merge(customer);
customer.setFirstName("Will");
tx.commit();
A comment on the question "OrderBy ignored" in javaee6:
Thanks!
But...keep in mind that the property has to be capitalized, i.e., ASC or DESC.
If the property is not recognized, i.e., you write asc or desc, then ASC is assumed. – Martin Schader, on July 18, 2009 17:07
Martin Schader asked a question in javaee6 on July 16, 2009 09:46:
no orphan removalAnd, it seems that orphanRemoval is also ignored. Listing 4-13, p. 131.
Martin Schader asked a question in javaee6 on July 14, 2009 08:51:
OrderBy ignoredIt seems that @OrderBy is also ignored. Try @OrderBy("postedDate asc") or @OrderBy("postedDate desc") in ex10, relationship, chapter03. The result is the same.
A comment on the question "Paris, Paris" in javaee6:
Talking about the text surrounding the figs. – Martin Schader, on July 11, 2009 19:02
Martin Schader asked a question in javaee6 on July 11, 2009 07:04:
Paris, ParisIn the second edn. you might change Classe1 to Class1 (once) and Classe2 to Class2 (three times) on page 88.
A comment on the question "updatable ignored" in javaee6:
EclipseLink 2.0.0-M4 with Derby 10.5.1.1 – Martin Schader, on July 11, 2009 06:58
Martin Schader marked one of Antonio Goncalves' replies in javaee6 as useful. Antonio Goncalves replied to the question "updatable ignored".
Martin Schader asked a question in javaee6 on July 09, 2009 09:53:
updatable ignoredIt looks like the combination EclipseLink&Derby graciously ignores the updatable=false annotation (p. 72, ex05).
No problem to change the title after persisting a book entity.
Martin Schader reported a problem in javaee6 on July 08, 2009 18:14:
id not nullHi Antonio,
It looks like the getRandomId() method you use in the tests of chapter03 will always produce an id of 0L since Math.random() returns results between 0 and 1.
Perhaps you could use Math.abs(new java.util.Random().nextLong()) or something more intelligent.
Best regards,
Martin Schader
Loading Profile...
