code: @Override
      public Timestamp fromBytes(Class targetClass, byte[] b)
      {
  
          // String s;
          // try
          // {
          // if(b == null)
          // {
          // return null;
          // }
          // s = new String(b, Constants.ENCODING);
          // }
          // catch (UnsupportedEncodingException e)
          // {
          // throw new PropertyAccessException(e);
          // }
          // return fromString(targetClass, s);
          try
          {
              if (b == null)
              {
                  return null;
              }
  
              // In case date.getTime() is stored in DB.
              LongAccessor longAccessor = new LongAccessor();
  
              return new Timestamp(longAccessor.fromBytes(targetClass, b));
          }
          catch (Exception e)
          {
              log.error("Error occured, Caused by {}.", e);
              throw new PropertyAccessException(e);
          }
      }
docs: /*
  (non-Javadoc)
  
  @see com.impetus.kundera.property.PropertyAccessor#fromBytes(byte[])