Class OidGenerationInterceptor

java.lang.Object
org.springframework.orm.hibernate.support.ChainedInterceptorSupport
com.atlassian.bamboo.persister.OidGenerationInterceptor
All Implemented Interfaces:
org.hibernate.Interceptor

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

    • OidGenerationInterceptor

      public OidGenerationInterceptor()
  • Method Details

    • 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[])