@Deprecated public List<E> findAllContainsB53(B53 v) { return forB53Contains(v).findAll(); }
@Deprecated public List<E> findAllContainsB51(B51 v) { return forB51Contains(v).findAll(); }
@Deprecated public List<E> findAllContainsRoleA23(A23 v) { return forRoleA23Contains(v).findAll(); }
A21TopiaDao dao = topiaDaoSupplier.getDao(A21.class, A21TopiaDao.class); tmp = dao.forRoleB21Equals(entity).findAll(); result.addAll(tmp);
A2TopiaDao dao = topiaDaoSupplier.getDao(A2.class, A2TopiaDao.class); tmp = dao.forB2Equals(entity).findAll(); result.addAll(tmp);
List<Assoc14C> findAllByProperties = dao.forProperties("a14C", entity).findAll(); if (findAllByProperties != null) { tmp.addAll(findAllByProperties);
List<Assoc14D> findAllByProperties = dao.forProperties("b14D", entity).findAll(); if (findAllByProperties != null) { tmp.addAll(findAllByProperties);
List<Assoc14D> findAllByProperties = dao.forProperties("roleA", entity).findAll(); if (findAllByProperties != null) { tmp.addAll(findAllByProperties);
List<CoselmarUserGroup> list = dao .forProperties(CoselmarUserGroup.PROPERTY_QUESTION, entity) .findAll(); for (CoselmarUserGroup item : list) {
List<FrenchCompany> list = dao .forProperties(FrenchCompany.PROPERTY_SIREN2, entity) .findAll(); for (FrenchCompany item : list) {
@Override public void delete(E entity) { if ( ! entity.isPersisted()) { throw new IllegalArgumentException("entity " + entity + " is not persisted, you can't delete it"); } { GcCacheTopiaDao dao = topiaDaoSupplier .getDao(GcCache.class, GcCacheTopiaDao.class); List<GcCache> list = dao .forProperties(GcCache.PROPERTY_OWNER, entity) .findAll(); for (GcCache item : list) { // sletellier : Set null only if target is concerned by deletion if (entity.equals(item.getOwner())) { item.setOwner(null); } } } super.delete(entity); }
@Override public void delete(E entity) { if ( ! entity.isPersisted()) { throw new IllegalArgumentException("entity " + entity + " is not persisted, you can't delete it"); } { QuestionTopiaDao dao = topiaDaoSupplier .getDao(Question.class, QuestionTopiaDao.class); List<Question> list = dao .forProperties(Question.PROPERTY_PARTICIPANTS, entity) .findAll(); for (Question item : list) { // sletellier : Set null only if target is concerned by deletion if (entity.equals(item.getParticipants())) { item.setParticipants(null); } } } super.delete(entity); }
@Override public void delete(E entity) { if ( ! entity.isPersisted()) { throw new IllegalArgumentException("entity " + entity + " is not persisted, you can't delete it"); } { GcCacheAttributeTopiaDao dao = topiaDaoSupplier .getDao(GcCacheAttribute.class, GcCacheAttributeTopiaDao.class); List<GcCacheAttribute> list = dao .forProperties(GcCacheAttribute.PROPERTY_GC_ATTRIBUTE, entity) .findAll(); for (GcCacheAttribute item : list) { // sletellier : Set null only if target is concerned by deletion if (entity.equals(item.getGcAttribute())) { item.setGcAttribute(null); } } } super.delete(entity); }
@Override public void delete(E entity) { if ( ! entity.isPersisted()) { throw new IllegalArgumentException("entity " + entity + " is not persisted, you can't delete it"); } { DocumentTopiaDao dao = topiaDaoSupplier .getDao(Document.class, DocumentTopiaDao.class); List<Document> list = dao .forProperties(Document.PROPERTY_OWNER, entity) .findAll(); for (Document item : list) { // sletellier : Set null only if target is concerned by deletion if (entity.equals(item.getOwner())) { item.setOwner(null); } } } super.delete(entity); }
@Deprecated public List<E> findAllContainsB12(B12 v) { return forB12Contains(v).findAll(); }
@Deprecated public List<E> findAllContainsRoleB13(B13 v) { return forRoleB13Contains(v).findAll(); }
@Deprecated public List<E> findAllContainsA22(A22 v) { return forA22Contains(v).findAll(); }
@Override public List<E> findAll() { List<E> result = newQueryBuilder().findAll(); return result; }
public List<Company> findWithFetchDepartments(String... names) { InnerTopiaQueryBuilderAddCriteriaOrRunQueryStep<Company> builder = newQueryBuilder(); builder.addIn(Company.PROPERTY_NAME, Arrays.asList(names)); builder.addFetch(Company.PROPERTY_DEPARTMENT); return builder.findAll(); }