Class OidGenerationInterceptor

  • All Implemented Interfaces:
    org.hibernate.Interceptor

    public class OidGenerationInterceptor
    extends ChainedInterceptorSupport
    Hibernate interceptor that generates entities OIDs on save.
    • Constructor Detail

      • OidGenerationInterceptor

        public OidGenerationInterceptor()
    • Method Detail

      • onSave

        public boolean onSave​(Object entity,
                              Serializable id,
                              Object[] state,
                              String[] propertyNames,
                              org.hibernate.type.Type[] types)
                       throws org.hibernate.CallbackException
        Specified by:
        onSave in interface org.hibernate.Interceptor
        Overrides:
        onSave in class ChainedInterceptorSupport
        Throws:
        org.hibernate.CallbackException
        See Also:
        Interceptor.onSave(java.lang.Object, java.io.Serializable, java.lang.Object[], java.lang.String[], org.hibernate.type.Type[])