@Test void testQueryByFilterMatching() { addConfigurationSubscriptions(List.of(CONFIGURATION_SUBSCRIPTION_1, CONFIGURATION_SUBSCRIPTION_2)); int foundSubscriptions = configurationSubscriptionService.createQuery() .onSelectMatching(Collections.singletonList(new ConfigurationEntry(null, null, Version.parseVersion("3.1"), "default", null, null, null, null, null))) .list() .size(); assertEquals(1, foundSubscriptions); }
public ConfigurationSubscriptionQuery createQuery() { return new ConfigurationSubscriptionQueryImpl(createEntityManager(), subscriptionMapper); }
ConfigurationSubscriptionService extends PersistenceService<ConfigurationSubscription, ConfigurationSubscriptionDto, Long> { public ConfigurationSubscriptionQuery createQuery() { return new ConfigurationSubscriptionQueryImpl(createEntityManager(), subscriptionMapper); } }
ConfigurationSubscriptionService extends PersistenceService<ConfigurationSubscription, ConfigurationSubscriptionDto, Long> { public ConfigurationSubscriptionQuery createQuery() { return new ConfigurationSubscriptionQueryImpl(createEntityManager(), subscriptionMapper); } ConfigurationSubscriptionService(EntityManagerFactory entityManagerFactory, ConfigurationSubscriptionMapper subscriptionMapper); }
ConfigurationSubscriptionService extends PersistenceService<ConfigurationSubscription, ConfigurationSubscriptionDto, Long> { public ConfigurationSubscriptionQuery createQuery() { return new ConfigurationSubscriptionQueryImpl(createEntityManager(), subscriptionMapper); } ConfigurationSubscriptionService(EntityManagerFactory entityManagerFactory, ConfigurationSubscriptionMapper subscriptionMapper); ConfigurationSubscriptionQuery createQuery(); }
ConfigurationSubscriptionService extends PersistenceService<ConfigurationSubscription, ConfigurationSubscriptionDto, Long> { public ConfigurationSubscriptionQuery createQuery() { return new ConfigurationSubscriptionQueryImpl(createEntityManager(), subscriptionMapper); } ConfigurationSubscriptionService(EntityManagerFactory entityManagerFactory, ConfigurationSubscriptionMapper subscriptionMapper); ConfigurationSubscriptionQuery createQuery();  }