I don't have any value encoders at all for my entities. Tapestry-JPA handles it all.
On Feb 27, 2012, at 12:17 PM, George Christman <gchrist...@cardaddy.com> wrote: > I set up my entity to use an @EmbeddedId. The @EmbeddedId annotation maps a > PK class to table PK. See code below, would I just return time.getTimePk(); > in toClient and let the value encoder handle it automatically? Thanks, > George > > @Embeddable > public class TimePK implements Serializable { > protected Integer levelStation; > protected Integer confPathID; > > public TimePK() {} > > public TimePK(Integer levelStation, String confPathID) { > this.id = levelStation; > this.name = confPathID; > } > // equals, hashCode > } > > @Entity > class Time implements Serializable { > @EmbeddedId > private TimePK timePK; > > private String src; > private String dst; > private Integer distance; > private Integer price; > > //... > } > > > -- > View this message in context: > http://tapestry.1045711.n5.nabble.com/Using-coposite-key-with-value-encoder-tp5519520p5519594.html > Sent from the Tapestry - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org > For additional commands, e-mail: users-h...@tapestry.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org