To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.
...
public enum EmployeeType {
manager, peon
}
...
// create EnumNameCodec for any enums
EnumNameCodec<EmployeeType> employeeTypeNameCodec = new EnumNameCodec<EmployeeType>(EmployeeType.class);
// Register the enumCodec
cluster = Cluster.builder()
.addContactPoint(node)
.withCredentials(username, password)
.withCodecRegistry(
new CodecRegistry()
.register(employeeTypeNameCodec)
/* additional enum codecs or custom codecs here */ )
.build();
--
You received this message because you are subscribed to the Google Groups "DataStax Java Driver for Apache Cassandra User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to java-driver-us...@lists.datastax.com.