code: @Override
      public byte[] toBytes(Object object)
      {
          if (object == null)
          {
              return null;
          }
          Calendar cal = (Calendar) object;
          // return
          // DateAccessor.getFormattedObect(cal.getTime().toString()).getBytes();
          LongAccessor longAccessor = new LongAccessor();
          return longAccessor.toBytes(cal.getTime().getTime());
      }
docs: /*
  (non-Javadoc)
  
  @see
  com.impetus.kundera.property.PropertyAccessor#toBytes(java.lang.Object)