code: @Override
      public byte[] toBytes(Object object)
      {
          // if(object == null)
          // {
          // return null;
          // }
          // Timestamp t = (Timestamp) object;
          // return t.toString().getBytes();
          try
          {
              if (object == null)
              {
                  return null;
              }
              LongAccessor longAccessor = new LongAccessor();
              return longAccessor.toBytes(((Timestamp) object).getTime());
              // return DATE_FORMATTER.format(((Date)
              // date)).getBytes(Constants.ENCODING);
          }
          catch (Exception e)
          {
              log.error("Error occured, Caused by {}.", e);
              throw new PropertyAccessException(e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.property.PropertyAccessor#toBytes(java.lang.Object)