Jean-Francois Leveque

Correction bug détecté à la documentation

1 +package org.legrog.configuration;
2 +
3 +/**
4 + * Created by leveque on 31/01/17.
5 + */
6 +public class SolrJConfiguration {
7 +}
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 }
......