code: private Object getObjectFromByteArray(EntityType entityType, byte[] value, String jpaColumnName, EntityMetadata m)
      {
          if (jpaColumnName != null)
          {
              String fieldName = m.getFieldName(jpaColumnName);
              if (fieldName != null)
              {
                  Attribute attribute = fieldName != null ? entityType.getAttribute(fieldName) : null;
  
                  EntityMetadata relationMetadata = KunderaMetadataManager.getEntityMetadata(kunderaMetadata,
                          attribute.getJavaType());
                  Object colValue = PropertyAccessorHelper.getObject(relationMetadata.getIdAttribute().getJavaType(),
                          value);
                  return colValue;
              }
          }
          logger.warn("No value found for column {}, returning null.", jpaColumnName);
          return null;
      }
docs: Gets the object from byte array.
  
  @param entityType
  the entity type
  @param value
  the value
  @param jpaColumnName
  the jpa column name
  @param m
  the m
  @return the object from byte array