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/

Reply via email to