? ( hibAnn == null ? OptimisticLockType.VERSION : hibAnn.optimisticLock() ) : optimisticLockingAnn.type();
private void bindHibernateAnnotation(org.hibernate.annotations.Entity hibAnn) { if ( hibAnn != null ) { dynamicInsert = hibAnn.dynamicInsert(); dynamicUpdate = hibAnn.dynamicUpdate(); optimisticLockType = hibAnn.optimisticLock(); selectBeforeUpdate = hibAnn.selectBeforeUpdate(); polymorphismType = hibAnn.polymorphism(); explicitHibernateEntityAnnotation = true; //persister handled in bind } else { //default values when the annotation is not there dynamicInsert = false; dynamicUpdate = false; optimisticLockType = OptimisticLockType.VERSION; polymorphismType = PolymorphismType.IMPLICIT; selectBeforeUpdate = false; } }
private void bindHibernateAnnotation(org.hibernate.annotations.Entity hibAnn) { if ( hibAnn != null ) { dynamicInsert = hibAnn.dynamicInsert(); dynamicUpdate = hibAnn.dynamicUpdate(); optimisticLockType = hibAnn.optimisticLock(); selectBeforeUpdate = hibAnn.selectBeforeUpdate(); polymorphismType = hibAnn.polymorphism(); explicitHibernateEntityAnnotation = true; //persister handled in bind } else { //default values when the annotation is not there dynamicInsert = false; dynamicUpdate = false; optimisticLockType = OptimisticLockType.VERSION; polymorphismType = PolymorphismType.IMPLICIT; selectBeforeUpdate = false; } }
private void bindHibernateAnnotation(org.hibernate.annotations.Entity hibAnn) { if ( hibAnn != null ) { dynamicInsert = hibAnn.dynamicInsert(); dynamicUpdate = hibAnn.dynamicUpdate(); optimisticLockType = hibAnn.optimisticLock(); selectBeforeUpdate = hibAnn.selectBeforeUpdate(); polymorphismType = hibAnn.polymorphism(); explicitHibernateEntityAnnotation = true; //persister handled in bind } else { //default values when the annotation is not there dynamicInsert = false; dynamicUpdate = false; optimisticLockType = OptimisticLockType.VERSION; polymorphismType = PolymorphismType.IMPLICIT; selectBeforeUpdate = false; } }
private void bindHibernateAnnotation(org.hibernate.annotations.Entity hibAnn) { if ( hibAnn != null ) { dynamicInsert = hibAnn.dynamicInsert(); dynamicUpdate = hibAnn.dynamicUpdate(); mutable = hibAnn.mutable(); optimisticLockType = hibAnn.optimisticLock(); persister = hibAnn.persister(); selectBeforeUpdate = hibAnn.selectBeforeUpdate(); polymorphismType = hibAnn.polymorphism(); explicitHibernateEntityAnnotation = true; } else { //default values when the annotation is not there dynamicInsert = false; dynamicUpdate = false; mutable = true; optimisticLockType = OptimisticLockType.VERSION; persister = ""; polymorphismType = PolymorphismType.IMPLICIT; selectBeforeUpdate = false; } }
? ( hibAnn == null ? OptimisticLockType.VERSION : hibAnn.optimisticLock() ) : optimisticLockingAnn.type();