Program: 176679
Project: 176679
Buggy source:
/** 
 * CRUD over Compound primary Key.
 * @throws IllegalAccessException
 * @throws InstantiationException
 */
@Test public void onCRUD() throws InstantiationException, IllegalAccessException {
  EntityManager em=emf.createEntityManager();
  UUID timeLineId=UUID.randomUUID();
  Date currentDate=new Date();
  CompoundKeyDataType key=prepareData(new Long(12345677),78575785897L,"String_Node_Str",false,10,'A',(byte)5,(short)8,(float)69.3,163.76765654,enrolmentDate,enrolmentTime,joiningDateAndTime,new Integer(3),new Long(978423946455l),135434.89,newSqlDate,sqlTime,sqlTimestamp,bigDecimal,bigInteger,calendar,CompoundKeyDataType.class.newInstance());
  Map<String,Client> clients=(Map<String,Client>)em.getDelegate();
  Client client=clients.get(PERSISTENCE_UNIT);
  ((CassandraClientBase)client).setCqlVersion("String_Node_Str");
  PrimeUserDataType user=new PrimeUserDataType(key);
  user.setTweetBody("String_Node_Str");
  user.setTweetDate(currentDate);
  em.persist(user);
  em.clear();
  PrimeUserDataType result=em.find(PrimeUserDataType.class,key);
  Assert.assertNotNull(result);
  Assert.assertEquals("String_Node_Str",result.getTweetBody());
  Assert.assertEquals(currentDate.getTime(),result.getTweetDate().getTime());
  em.clear();
  user.setTweetBody("String_Node_Str");
  em.merge(user);
  em.clear();
  result=em.find(PrimeUserDataType.class,key);
  Assert.assertNotNull(result);
  Assert.assertEquals("String_Node_Str",result.getTweetBody());
  Assert.assertEquals(currentDate.getTime(),result.getTweetDate().getTime());
  em.remove(result);
  em.clear();
  result=em.find(PrimeUserDataType.class,key);
  Assert.assertNull(result);
}

Fixed version (ground truth):
/** 
 * CRUD over Compound primary Key.
 * @throws IllegalAccessException
 * @throws InstantiationException
 */
@Test public void onCRUD() throws InstantiationException, IllegalAccessException {
  EntityManager em=emf.createEntityManager();
  UUID timeLineId=UUID.randomUUID();
  Date currentDate=new Date();
  CompoundKeyDataType key=prepareData(new Long(12345677),78575785897L,"String_Node_Str",false,10,'A',(byte)5,(short)8,(float)69.3,163.76765654,enrolmentDate,enrolmentTime,joiningDateAndTime,new Integer(3),new Long(978423946455l),135434.89,newSqlDate,sqlTime,sqlTimestamp,bigDecimal,bigInteger,calendar,CompoundKeyDataType.class.newInstance());
  Map<String,Client> clients=(Map<String,Client>)em.getDelegate();
  Client client=clients.get(PERSISTENCE_UNIT);
  ((CassandraClientBase)client).setCqlVersion("String_Node_Str");
  PrimeUserDataType user=new PrimeUserDataType(key);
  user.setTweetBody("String_Node_Str");
  user.setTweetDate(currentDate);
  user.setIsActive(true);
  em.persist(user);
  em.clear();
  PrimeUserDataType result=em.find(PrimeUserDataType.class,key);
  Assert.assertNotNull(result);
  Assert.assertEquals("String_Node_Str",result.getTweetBody());
  Assert.assertEquals(currentDate.getTime(),result.getTweetDate().getTime());
  Assert.assertTrue(result.getIsActive());
  em.clear();
  user.setTweetBody("String_Node_Str");
  em.merge(user);
  em.clear();
  result=em.find(PrimeUserDataType.class,key);
  Assert.assertNotNull(result);
  Assert.assertEquals("String_Node_Str",result.getTweetBody());
  Assert.assertEquals(currentDate.getTime(),result.getTweetDate().getTime());
  em.remove(result);
  em.clear();
  result=em.find(PrimeUserDataType.class,key);
  Assert.assertNull(result);
}