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