persistence@glassfish.java.net

JPQL: update fields of embedded instances (issue 1124)

From: Michael Bouschen <Michael.Bouschen_at_Sun.COM>
Date: Mon, 18 Sep 2006 16:55:48 +0200

Hi Tom, hi Jielin,

I fixed issue 1124 "EJB3.0: Embedded object and path in UPDATE
statement": https://glassfish.dev.java.net/issues/show_bug.cgi?id=1124

The attached jar JPQL-updateEmbeddeds-060918.jar includes the code
changes and new tests in entity-persistence-tests. I extended the parse
to accept a path expression including more than one dot. I also added
some validation code to the parser node class EqualsAssignmentNode. It
disallows updating a collection valued relationship field and navigating
through a relationship field in the target expression of the SET clause.

Thanks!

Regards Michael