FrenchCompanyTopiaDao dao = topiaDaoSupplier.getDao(FrenchCompany.class, FrenchCompanyTopiaDao.class); tmp = dao.forsIRENEquals(entity).findAll(); result.addAll(tmp); FrenchCompanyTopiaDao dao = topiaDaoSupplier.getDao(FrenchCompany.class, FrenchCompanyTopiaDao.class); tmp = dao.forSIREN2Equals(entity).findAll(); result.addAll(tmp);
io.ultreia.gc.db.entity.GcUser gcUser = userLoader.load(gcOwner.getUserId() + ""); if (updateCachesOwnedInFrance && gcUser.getCachesOwnedInFrance() == 0) { long count = cacheDao.forProperties(io.ultreia.gc.db.entity.GcCache.PROPERTY_OWNER, gcUser, io.ultreia.gc.db.entity.GcCache.PROPERTY_COUNTRY, GcCountry.France).count(); gcUser.setCachesOwnedInFrance((int) count);
A21TopiaDao dao = topiaDaoSupplier.getDao(A21.class, A21TopiaDao.class); tmp = dao.forRoleB21Equals(entity).findAll(); result.addAll(tmp);
A13ATopiaDao dao = topiaDaoSupplier.getDao(A13A.class, A13ATopiaDao.class); tmp = dao.forB13BEquals(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);
io.ultreia.gc.db.entity.GcCache.PROPERTY_TERRAIN, gcTerrain, io.ultreia.gc.db.entity.GcCache.PROPERTY_COUNTRY, gcCountry) .count(); GcCacheCountryStats.PROPERTY_TERRAIN, gcTerrain ).tryFindUnique().orNull(); if (stats == null) { statsDao.create(GcCacheCountryStats.PROPERTY_COUNTRY, gcCountry,
io.ultreia.gc.db.entity.GcCache.PROPERTY_TERRAIN, gcTerrain, io.ultreia.gc.db.entity.GcCache.PROPERTY_STATE, gcState) .count(); GcCacheStateStats.PROPERTY_TERRAIN, gcTerrain ).tryFindUnique().orNull(); if (stats == null) { statsDao.create(GcCacheStateStats.PROPERTY_STATE, gcState,
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"); } { 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); }
@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); }
@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> findAllContainsRoleA23(A23 v) { return forRoleA23Contains(v).findAll(); }