AssocOneHelpRefExported(BeanPropertyAssocOne<?> property) { super(property); this.softDelete = property.targetDescriptor.isSoftDelete(); this.softDeletePredicate = (softDelete) ? property.targetDescriptor.getSoftDeletePredicate("") : null; }
sb.append(" and ").append(targetDescriptor.getSoftDeletePredicate(alias));
/** * Build the find ids query. */ <T> CQueryFetchSingleAttribute buildFetchIdsQuery(OrmQueryRequest<T> request) { SpiQuery<T> query = request.getQuery(); query.setSelectId(); BeanDescriptor<T> desc = request.getBeanDescriptor(); if (!query.isIncludeSoftDeletes() && desc.isSoftDelete()) { query.addSoftDeletePredicate(desc.getSoftDeletePredicate(alias(query.getAlias()))); } return buildFetchAttributeQuery(request); }
AssocOneHelpRefExported(BeanPropertyAssocOne<?> property) { super(property); this.softDelete = property.targetDescriptor.isSoftDelete(); this.softDeletePredicate = (softDelete) ? property.targetDescriptor.getSoftDeletePredicate("") : null; }
sb.append(" and ").append(targetDescriptor.getSoftDeletePredicate(alias));
/** * Build the find ids query. */ <T> CQueryFetchSingleAttribute buildFetchIdsQuery(OrmQueryRequest<T> request) { SpiQuery<T> query = request.getQuery(); query.setSelectId(); BeanDescriptor<T> desc = request.getBeanDescriptor(); if (!query.isIncludeSoftDeletes() && desc.isSoftDelete()) { query.addSoftDeletePredicate(desc.getSoftDeletePredicate(alias(query.getAlias()))); } return buildFetchAttributeQuery(request); }