It could be useful to have a PrimaryKeyEncoders factory class that could create various instances. The most used one for me in T4 was creating one based on a list were the key is the index. I was thinking it would look something like this:
public final class PrimaryKeyEncoders { private PrimaryKeyEncoders() {} public static PrimaryKeyEncoder<Integer, T> listEncoder(List<T> values) {...} public static PrimaryKeyEncoder<Integer, T> arrayEncoder(T[] values) { ... } } If not in T5 I'm going to probably have to include it in our own library but I thought it may make sense. -- Dan Adams Senior Software Engineer Interactive Factory 617.235.5857 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]