Showing
3 changed files
with
26 additions
and
1 deletions
1 | +/* | ||
2 | +package org.legrog.configuration; | ||
3 | +import org.apache.solr.client.solrj.impl.HttpSolrClient; | ||
4 | +import org.springframework.data.solr.core.SolrOperations; | ||
5 | +import org.springframework.data.solr.core.SolrTemplate; | ||
6 | + | ||
7 | +import javax.enterprise.context.ApplicationScoped; | ||
8 | +import javax.enterprise.inject.Produces; | ||
9 | +*/ | ||
10 | +/* | ||
11 | +public class SolrTemplateProducer { | ||
12 | + @Produces | ||
13 | + @ApplicationScoped | ||
14 | + public SolrOperations createSolrTemplate() { | ||
15 | + return new SolrTemplate(new HttpSolrClient.Builder("localhost:8983/solr").build()); | ||
16 | + } | ||
17 | +} | ||
18 | +*/ |
... | @@ -7,7 +7,7 @@ import java.util.List; | ... | @@ -7,7 +7,7 @@ import java.util.List; |
7 | 7 | ||
8 | public interface PublisherActionRepository extends JpaRepository<PublisherAction, Integer> { | 8 | public interface PublisherActionRepository extends JpaRepository<PublisherAction, Integer> { |
9 | 9 | ||
10 | - PublisherAction findFirstByActionTypeAndPublisherOrderByPublisherActionDatetime(ActionType actionType, Publisher publisher); | 10 | + PublisherAction findFirstByActionTypeAndPublisherOrderByPublisherActionDatetimeDesc(ActionType actionType, Publisher publisher); |
11 | 11 | ||
12 | List<PublisherAction> findByPublisherVersion(PublisherVersion publisherVersion); | 12 | List<PublisherAction> findByPublisherVersion(PublisherVersion publisherVersion); |
13 | } | 13 | } | ... | ... |
-
Please register or login to post a comment