title: CassandraInvalidQueryException String didn't validate Composite Primary Query
body: <p>I am trying to use Spring-Data-Cassandra with UserDefinedType and Compound Query Key. I am using 1.5.0.DATACASS-172-SNAPSHOT of the spring-cql and spring-data-cassandra. The code throws below exception.</p>
  
  <pre><code>Caused by: org.springframework.cassandra.support.exception.CassandraInvalidQueryException: 
  String didn't validate.; nested exception is com.datastax.driver.core.exceptions.InvalidQueryException: 
  String didn't validate.
  </code></pre>
  
  <p>Below is my code</p>
  
  <pre><code>@PrimaryKeyClass
  public class EmployeeIdKey implements Serializable {
      @PrimaryKeyColumn(ordinal = 0, type = PrimaryKeyType.PARTITIONED,name = "id")
      @CassandraType(type = DataType.Name.UUID)
      private UUID id;
      @PrimaryKeyColumn(ordinal = 1,type = PrimaryKeyType.CLUSTERED, name = "user_id")
      @CassandraType(type = DataType.Name.TEXT)
      private String userId;
  
      public EmployeeIdKey(){
          id = null;
          userId = null;
      }
  
      public UUID getUuId() {
          return id;
      }
  
      public void setUuId(UUID uuId) {
          this.id = uuId;
      }
  
      public String getUserId() {
          return userId;
      }
  
      public void setUserId(String userId) {
          this.userId = userId;
      }
  }
  </code></pre>
  
  <p>Employee.java</p>
  
  <pre><code>@Table("employee")
  public class Employee {
      @PrimaryKey
      private EmployeeIdKey id;
  
      private Person person;
  
      @Column("employee_no")
      private String employeeNo;
  
      @Column("email_ids")
      private List&lt;String&gt; emailId;
      //Getters and setters
  }
  </code></pre>
  
  <p>Person.java </p>
  
  <pre><code>@UserDefinedType
  public class Person {
  
      public Person(String firstName, String lastName) {
          this.firstName = firstName;
          this.lastName = lastName;
  
      }
      @Column("first_name")
      private String firstName;
      @Column("last_name")
      private String lastName;
  // Getters adn setters;
  }
  </code></pre>
  
  <p>EmployeeRepository.java</p>
  
  <pre><code>public interface EmployeeRepository extends TypedIdCassandraRepository&lt;Employee,EmployeeIdKey&gt; {
  }
  </code></pre>
  
  <p>App.java</p>
  
  <pre><code>@SpringBootApplication
  public class App {
  
      public static void main(String[] args) {
          SpringApplication.run(App.class);
      }
      @Bean
      public CommandLineRunner demo( EmployeeRepository repository) {
          Employee employee = new Employee();
          EmployeeIdKey key = new EmployeeIdKey();
          key.setUserId("55550");
          key.setUuId(UUID.randomUUID());
          employee.setId(key);
          List&lt;String&gt; emailIds = Arrays.asList("myemail@domain.com","myemail2@domain2.com");
          employee.setEmailId(emailIds);
          Person person = new Person("John", "Mathew");
          employee.setPerson(person);
  
  
          repository.save(employee);
          return  null;
      }
  }
  </code></pre>
  
  <p>When I use simple primary key it works well.</p>