Class PropertyJson<T extends net.tangly.bus.core.HasOid,​V>

java.lang.Object
net.tangly.orm.imp.PropertySimple<T>
net.tangly.orm.imp.PropertyJson<T,​V>
Type Parameters:
T - type of the owner of the property
V - type of the format of the single or multiple values property
All Implemented Interfaces:
Property<T>

public class PropertyJson<T extends net.tangly.bus.core.HasOid,​V>
extends PropertySimple<T>
A property which stores its values as as JSON representation in one column in the database table. Multi-format properties are supported.
  • Constructor Details

    • PropertyJson

      public PropertyJson​(java.lang.String name, java.lang.Class<T> entity, java.lang.Class<V> referenceType)
      Constructor of the JSON property.
      Parameters:
      name - name of the property
      entity - class owning the mapped property
      referenceType - class of the reference type to map
  • Method Details

    • set

      public <P,​ V> void set​(@NotNull T entity, V value, @NotNull @NotNull Property.ConverterType type) throws java.security.PrivilegedActionException
      Throws:
      java.security.PrivilegedActionException