Interface VirtualEntity


public interface VirtualEntity
Marker interface for entities that represent a virtual (non-content) entity.
  • Method Summary

    Static Methods
    Modifier and Type
    Method
    Description
    static <T extends com.coremedia.objectserver.dataviews.AssumesIdentity>
    T
    ofBean(T bean)
    Replace the given bean with a bean that additionally implements VirtualEntity and assumed the identity of the given bean.
  • Method Details

    • ofBean

      static <T extends com.coremedia.objectserver.dataviews.AssumesIdentity> T ofBean(T bean)
      Replace the given bean with a bean that additionally implements VirtualEntity and assumed the identity of the given bean.

      Caution: The method annotations of the given bean are not copied to the new bean. Especially the Autowired annotation is not copied.