On Tue, 28 Feb 2012 11:53:43 -0300, Lenny Primak <lpri...@hope.nyc.ny.us>
wrote:
Take a look at source code for Tapestry-JPA
Or just think about it: you have an object, two or more values used as
primary key. Now you need to transform this into a string. Concatenate
them all using some character. Let's say ':'. Now you have your toClient()
method. For the toValue(), you use string.split(":") and go to the
database to find the object that has these values as its composite primary
key.
Short version: same as ValueEncoders for simple primary keys, but a little
more complex.
--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org