ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ivan Pavlukhin <vololo...@gmail.com>
Subject Re: [IGNITE-12582] Configuration by property
Date Sat, 01 Feb 2020 07:26:52 GMT
Sergey,

I understand and support the proposed idea. Just curious how to
implement it. Do you already have some prototype?

пт, 31 янв. 2020 г. в 11:48, schernolyas <sergey.chernolyas@gmail.com>:
>
> Hi!
>
> It is proposed to use the same annotation(RepositoryConfig). But value of
> field "cacheName"  can be constant or Spring EL expression.
> Correct cases are:
> 1) By Spring EL expression
> @Repository
> @RepositoryConfig(cacheName = "@cacheNames.calendarCacheName")
> public interface CalendarRepository extends IgniteRepository<Calendar,
> String> {
>     List<Calendar> findByName(String name);
> }
> 2) By constant
> @Repository
> @RepositoryConfig(cacheName = "Calendar")
> public interface CalendarRepository extends IgniteRepository<Calendar,
> String> {
>     List<Calendar> findByName(String name);
> }
>
> Any other ideas?
>
>
>
> --
> Sent from: http://apache-ignite-developers.2346864.n4.nabble.com/



-- 
Best regards,
Ivan Pavlukhin

Mime
View raw message