#342 - Expanded copyright headers to 2018.

Removed trailing whitespace in touched files.
This commit is contained in:
Oliver Gierke
2018-02-22 11:42:36 +01:00
parent 20c910183e
commit d854c6d084
351 changed files with 654 additions and 654 deletions

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import com.datastax.driver.core.Session;
/** /**
* Basic {@link Configuration} to create the necessary schema for the {@link User} table. * Basic {@link Configuration} to create the necessary schema for the {@link User} table.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
* @author Mark Paluch * @author Mark Paluch

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,14 +23,14 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* Simple repository interface for {@link User} instances. The interface is used to declare so called query methods, * Simple repository interface for {@link User} instances. The interface is used to declare so called query methods,
* methods to retrieve single entities or collections of them. * methods to retrieve single entities or collections of them.
* *
* @author Thomas Darimont * @author Thomas Darimont
*/ */
public interface BasicUserRepository extends CrudRepository<User, Long> { public interface BasicUserRepository extends CrudRepository<User, Long> {
/** /**
* Sample method annotated with {@link Query}. This method executes the CQL from the {@link Query} value. * Sample method annotated with {@link Query}. This method executes the CQL from the {@link Query} value.
* *
* @param id * @param id
* @return * @return
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2017 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* Sample repository managing customers to show projecting functionality of Spring Data Cassandra. * Sample repository managing customers to show projecting functionality of Spring Data Cassandra.
* *
* @author Mark Paluch * @author Mark Paluch
*/ */
interface CustomerRepository extends CrudRepository<Customer, String> { interface CustomerRepository extends CrudRepository<Customer, String> {
@@ -30,7 +30,7 @@ interface CustomerRepository extends CrudRepository<Customer, String> {
/** /**
* Uses a projection interface to indicate the fields to be returned. As the projection doesn't use any dynamic * Uses a projection interface to indicate the fields to be returned. As the projection doesn't use any dynamic
* fields, the query execution will be restricted to only the fields needed by the projection. * fields, the query execution will be restricted to only the fields needed by the projection.
* *
* @return * @return
*/ */
Collection<CustomerProjection> findAllProjectedBy(); Collection<CustomerProjection> findAllProjectedBy();
@@ -39,14 +39,14 @@ interface CustomerRepository extends CrudRepository<Customer, String> {
* When a projection is used that contains dynamic properties (i.e. SpEL expressions in an {@link Value} annotation), * When a projection is used that contains dynamic properties (i.e. SpEL expressions in an {@link Value} annotation),
* the normal target entity will be loaded but dynamically projected so that the target can be referred to in the * the normal target entity will be loaded but dynamically projected so that the target can be referred to in the
* expression. * expression.
* *
* @return * @return
*/ */
Collection<CustomerSummary> findAllSummarizedBy(); Collection<CustomerSummary> findAllSummarizedBy();
/** /**
* Passes in the projection type dynamically. * Passes in the projection type dynamically.
* *
* @param id * @param id
* @param projection * @param projection
* @return * @return
@@ -55,7 +55,7 @@ interface CustomerRepository extends CrudRepository<Customer, String> {
/** /**
* Projection for a single entity. * Projection for a single entity.
* *
* @param id * @param id
* @return * @return
*/ */
@@ -63,7 +63,7 @@ interface CustomerRepository extends CrudRepository<Customer, String> {
/** /**
* Dynamic projection for a single entity. * Dynamic projection for a single entity.
* *
* @param id * @param id
* @param projection * @param projection
* @return * @return

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.springframework.data.cassandra.repository.config.EnableCassandraRepos
/** /**
* Basic {@link Configuration} to create the necessary schema for the {@link Customer} table. * Basic {@link Configuration} to create the necessary schema for the {@link Customer} table.
* *
* @author Mark Paluch * @author Mark Paluch
*/ */
@Configuration @Configuration

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2017 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -30,7 +30,7 @@ public interface ReactivePersonRepository extends ReactiveCrudRepository<Person,
/** /**
* Derived query selecting by {@code lastname}. * Derived query selecting by {@code lastname}.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
@@ -38,7 +38,7 @@ public interface ReactivePersonRepository extends ReactiveCrudRepository<Person,
/** /**
* String query selecting one entity. * String query selecting one entity.
* *
* @param lastname * @param lastname
* @return * @return
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016-2017 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import org.springframework.util.Assert;
/** /**
* Base class to abstract contact point details for Apache Cassandra as {@link ExternalResource}. * Base class to abstract contact point details for Apache Cassandra as {@link ExternalResource}.
* *
* @author Mark Paluch * @author Mark Paluch
*/ */
public abstract class CassandraResource extends ExternalResource { public abstract class CassandraResource extends ExternalResource {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2016 the original author or authors. * Copyright 2016-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2015 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -34,7 +34,7 @@ import org.springframework.test.context.junit4.SpringRunner;
/** /**
* Test case to show Spring Data Elasticsearch functionality. * Test case to show Spring Data Elasticsearch functionality.
* *
* @author Artur Konczak * @author Artur Konczak
* @author Oliver Gierke * @author Oliver Gierke
* @author Christoph Strobl * @author Christoph Strobl

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2017 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -51,7 +51,7 @@ public class Application extends JpaBaseConfiguration {
super(dataSource, properties, jtaTransactionManagerProvider, transactionManagerCustomizers); super(dataSource, properties, jtaTransactionManagerProvider, transactionManagerCustomizers);
} }
/* /*
* (non-Javadoc) * (non-Javadoc)
* @see org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration#createJpaVendorAdapter() * @see org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration#createJpaVendorAdapter()
*/ */
@@ -60,7 +60,7 @@ public class Application extends JpaBaseConfiguration {
return new EclipseLinkJpaVendorAdapter(); return new EclipseLinkJpaVendorAdapter();
} }
/* /*
* (non-Javadoc) * (non-Javadoc)
* @see org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration#getVendorProperties() * @see org.springframework.boot.autoconfigure.orm.jpa.JpaBaseConfiguration#getVendorProperties()
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2017 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2016 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.test.context.junit4.SpringRunner;
/** /**
* Integration test for {@link CustomerRepository}. * Integration test for {@link CustomerRepository}.
* *
* @author Oliver Gierke * @author Oliver Gierke
*/ */
@RunWith(SpringRunner.class) @RunWith(SpringRunner.class)

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -36,7 +36,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
/** /**
* User domain class that uses auditing functionality of Spring Data that can either be aquired implementing * User domain class that uses auditing functionality of Spring Data that can either be aquired implementing
* {@link Auditable} or extend {@link AbstractAuditable}. * {@link Auditable} or extend {@link AbstractAuditable}.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.springframework.data.domain.AuditorAware;
* Dummy implementation of {@link AuditorAware}. It will return the configured {@link AuditableUser} as auditor on every * Dummy implementation of {@link AuditorAware}. It will return the configured {@link AuditableUser} as auditor on every
* call to {@link #getCurrentAuditor()}. Normally you would access the applications security subsystem to return the * call to {@link #getCurrentAuditor()}. Normally you would access the applications security subsystem to return the
* current user. * current user.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.context.annotation.Bean;
/** /**
* Java config to use Spring Data JPA alongside the Spring caching support. * Java config to use Spring Data JPA alongside the Spring caching support.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* User repository using Spring's caching abstraction. * User repository using Spring's caching abstraction.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.springframework.data.jpa.domain.AbstractPersistable;
/** /**
* Sample user class. * Sample user class.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -51,7 +51,7 @@ public class User extends AbstractPersistable<Long> {
/** /**
* Returns the username. * Returns the username.
* *
* @return * @return
*/ */
public String getUsername() { public String getUsername() {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2017 the original author or authors. * Copyright 2017-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
/** /**
* Sample configuration to bootstrap Spring Data JPA through JavaConfig * Sample configuration to bootstrap Spring Data JPA through JavaConfig
* *
* @author Thomas Darimont * @author Thomas Darimont
* @author Oliver Gierke * @author Oliver Gierke
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.springframework.data.jpa.domain.AbstractPersistable;
/** /**
* Sample user class. * Sample user class.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -51,7 +51,7 @@ public class User extends AbstractPersistable<Long> {
/** /**
* Returns the username. * Returns the username.
* *
* @return * @return
*/ */
public String getUsername() { public String getUsername() {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2015 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -24,7 +24,7 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* Repository interface for {@link User} instances. Provides basic CRUD operations due to the extension of * Repository interface for {@link User} instances. Provides basic CRUD operations due to the extension of
* {@link JpaRepository}. Includes custom implemented functionality by extending {@link UserRepositoryCustom}. * {@link JpaRepository}. Includes custom implemented functionality by extending {@link UserRepositoryCustom}.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -33,7 +33,7 @@ public interface UserRepository extends CrudRepository<User, Long>, UserReposito
/** /**
* Find the user with the given username. This method will be translated into a query using the * Find the user with the given username. This method will be translated into a query using the
* {@link javax.persistence.NamedQuery} annotation at the {@link User} class. * {@link javax.persistence.NamedQuery} annotation at the {@link User} class.
* *
* @param username * @param username
* @return * @return
*/ */
@@ -42,7 +42,7 @@ public interface UserRepository extends CrudRepository<User, Long>, UserReposito
/** /**
* Find all users with the given lastname. This method will be translated into a query by constructing it directly * Find all users with the given lastname. This method will be translated into a query by constructing it directly
* from the method name as there is no other query declared. * from the method name as there is no other query declared.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
@@ -51,7 +51,7 @@ public interface UserRepository extends CrudRepository<User, Long>, UserReposito
/** /**
* Returns all users with the given firstname. This method will be translated into a query using the one declared in * Returns all users with the given firstname. This method will be translated into a query using the one declared in
* the {@link Query} annotation declared one. * the {@link Query} annotation declared one.
* *
* @param firstname * @param firstname
* @return * @return
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -19,7 +19,7 @@ import java.util.List;
/** /**
* Interface for repository functionality that ought to be implemented manually. * Interface for repository functionality that ought to be implemented manually.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -27,7 +27,7 @@ interface UserRepositoryCustom {
/** /**
* Custom repository operation. * Custom repository operation.
* *
* @return * @return
*/ */
List<User> myCustomBatchOperation(); List<User> myCustomBatchOperation();

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -24,26 +24,26 @@ import javax.persistence.criteria.CriteriaQuery;
/** /**
* Implementation fo the custom repository functionality declared in {@link UserRepositoryCustom} based on JPA. To use * Implementation fo the custom repository functionality declared in {@link UserRepositoryCustom} based on JPA. To use
* this implementation in combination with Spring Data JPA you can either register it programatically: * this implementation in combination with Spring Data JPA you can either register it programatically:
* *
* <pre> * <pre>
* EntityManager em = ... // Obtain EntityManager * EntityManager em = ... // Obtain EntityManager
* *
* UserRepositoryCustom custom = new UserRepositoryImpl(); * UserRepositoryCustom custom = new UserRepositoryImpl();
* custom.setEntityManager(em); * custom.setEntityManager(em);
* *
* RepositoryFactorySupport factory = new JpaRepositoryFactory(em); * RepositoryFactorySupport factory = new JpaRepositoryFactory(em);
* UserRepository repository = factory.getRepository(UserRepository.class, custom); * UserRepository repository = factory.getRepository(UserRepository.class, custom);
* </pre> * </pre>
* *
* Using the Spring namespace the implementation will just get picked up due to the classpath scanning for * Using the Spring namespace the implementation will just get picked up due to the classpath scanning for
* implementations with the {@code Impl} postfix. * implementations with the {@code Impl} postfix.
* *
* <pre> * <pre>
* &lt;jpa:repositories base-package=&quot;com.acme.repository&quot; /&gt; * &lt;jpa:repositories base-package=&quot;com.acme.repository&quot; /&gt;
* </pre> * </pre>
* *
* If you need to manually configure the custom instance see {@link UserRepositoryImplJdbc} for an example. * If you need to manually configure the custom instance see {@link UserRepositoryImplJdbc} for an example.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -53,7 +53,7 @@ class UserRepositoryImpl implements UserRepositoryCustom {
/** /**
* Configure the entity manager to be used. * Configure the entity manager to be used.
* *
* @param em the {@link EntityManager} to set. * @param em the {@link EntityManager} to set.
*/ */
public void setEntityManager(EntityManager em) { public void setEntityManager(EntityManager em) {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2015 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -33,18 +33,18 @@ import org.springframework.stereotype.Component;
* <p> * <p>
* As you need to hand the instance a {@link javax.sql.DataSource} or * As you need to hand the instance a {@link javax.sql.DataSource} or
* {@link org.springframework.jdbc.core.simple.SimpleJdbcTemplate} you manually need to declare it as Spring bean: * {@link org.springframework.jdbc.core.simple.SimpleJdbcTemplate} you manually need to declare it as Spring bean:
* *
* <pre> * <pre>
* &lt;jpa:repository base-package=&quot;com.acme.repository&quot; /&gt; * &lt;jpa:repository base-package=&quot;com.acme.repository&quot; /&gt;
* *
* &lt;bean id=&quot;userRepositoryImpl&quot; class=&quot;...UserRepositoryJdbcImpl&quot;&gt; * &lt;bean id=&quot;userRepositoryImpl&quot; class=&quot;...UserRepositoryJdbcImpl&quot;&gt;
* &lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt; * &lt;property name=&quot;dataSource&quot; ref=&quot;dataSource&quot; /&gt;
* &lt;/bean&gt; * &lt;/bean&gt;
* </pre> * </pre>
* *
* Using {@code userRepositoryImpl} will cause the repository instance get this bean injected for custom repository * Using {@code userRepositoryImpl} will cause the repository instance get this bean injected for custom repository
* logic as the default postfix for custom DAO instances is {@code Impl}. * logic as the default postfix for custom DAO instances is {@code Impl}.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -20,7 +20,7 @@ import org.springframework.data.repository.NoRepositoryBean;
/** /**
* A base repository interface declaring a custom method shared amongst all repositories. * A base repository interface declaring a custom method shared amongst all repositories.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @see ExtendedJpaRepository * @see ExtendedJpaRepository
* @soundtrack Tim Neuhaus - As life found you (The Cabinet) * @soundtrack Tim Neuhaus - As life found you (The Cabinet)

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2016 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -22,7 +22,7 @@ import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
* Sample configuration to bootstrap Spring Data JPA through JavaConfig. Note how Spring Data JPA is configured with a * Sample configuration to bootstrap Spring Data JPA through JavaConfig. Note how Spring Data JPA is configured with a
* custom repository base class. This causes all repository interfaces being found for this configuration to use the * custom repository base class. This causes all repository interfaces being found for this configuration to use the
* configured class as base repository. * configured class as base repository.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @soundtrack Tim Neuhaus - As life found you (The Cabinet) * @soundtrack Tim Neuhaus - As life found you (The Cabinet)
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -28,7 +28,7 @@ class ExtendedJpaRepository<T> extends SimpleJpaRepository<T, Long> implements B
/** /**
* Creates a new {@link ExtendedJpaRepository} for the given {@link JpaEntityInformation} and {@link EntityManager}. * Creates a new {@link ExtendedJpaRepository} for the given {@link JpaEntityInformation} and {@link EntityManager}.
* *
* @param entityInformation must not be {@literal null}. * @param entityInformation must not be {@literal null}.
* @param entityManager must not be {@literal null}. * @param entityManager must not be {@literal null}.
*/ */
@@ -36,7 +36,7 @@ class ExtendedJpaRepository<T> extends SimpleJpaRepository<T, Long> implements B
super(entityInformation, entityManager); super(entityInformation, entityManager);
} }
/* /*
* (non-Javadoc) * (non-Javadoc)
* @see example.springdata.jpa.customall.BaseRepository#customMethod() * @see example.springdata.jpa.customall.BaseRepository#customMethod()
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -21,7 +21,7 @@ import javax.persistence.Id;
/** /**
* Sample user class. * Sample user class.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @soundtrack Tim Neuhaus - As life found you (The Cabinet) * @soundtrack Tim Neuhaus - As life found you (The Cabinet)
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -17,7 +17,7 @@ package example.springdata.jpa.customall;
/** /**
* Repository interface for {@link User} instances. * Repository interface for {@link User} instances.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @soundtrack Tim Neuhaus - As life found you (The Cabinet) * @soundtrack Tim Neuhaus - As life found you (The Cabinet)
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2016 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015-2016 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -32,7 +32,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Uses a projection interface to indicate the fields to be returned. As the projection doesn't use any dynamic * Uses a projection interface to indicate the fields to be returned. As the projection doesn't use any dynamic
* fields, the query execution will be restricted to only the fields needed by the projection. * fields, the query execution will be restricted to only the fields needed by the projection.
* *
* @return * @return
*/ */
Collection<CustomerProjection> findAllProjectedBy(); Collection<CustomerProjection> findAllProjectedBy();
@@ -41,7 +41,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
* When a projection is used that contains dynamic properties (i.e. SpEL expressions in an {@link Value} annotation), * When a projection is used that contains dynamic properties (i.e. SpEL expressions in an {@link Value} annotation),
* the normal target entity will be loaded but dynamically projected so that the target can be referred to in the * the normal target entity will be loaded but dynamically projected so that the target can be referred to in the
* expression. * expression.
* *
* @return * @return
*/ */
Collection<CustomerSummary> findAllSummarizedBy(); Collection<CustomerSummary> findAllSummarizedBy();
@@ -49,7 +49,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Projection interfaces can be used with manually declared queries, too. Make sure you alias the projects matching * Projection interfaces can be used with manually declared queries, too. Make sure you alias the projects matching
* the projection fields. * the projection fields.
* *
* @return * @return
*/ */
@Query("select c.firstname as firstname, c.lastname as lastname from Customer c") @Query("select c.firstname as firstname, c.lastname as lastname from Customer c")
@@ -58,14 +58,14 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Uses a concrete DTO type to indicate the fields to be returned. This gets translated into a constructor expression * Uses a concrete DTO type to indicate the fields to be returned. This gets translated into a constructor expression
* in the query. * in the query.
* *
* @return * @return
*/ */
Collection<CustomerDto> findAllDtoedBy(); Collection<CustomerDto> findAllDtoedBy();
/** /**
* Passes in the projection type dynamically (either interface or DTO). * Passes in the projection type dynamically (either interface or DTO).
* *
* @param firstname * @param firstname
* @param projection * @param projection
* @return * @return
@@ -74,7 +74,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Projection for a single entity. * Projection for a single entity.
* *
* @param id * @param id
* @return * @return
*/ */
@@ -82,7 +82,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Dynamic projection for a single entity. * Dynamic projection for a single entity.
* *
* @param id * @param id
* @param projection * @param projection
* @return * @return
@@ -91,7 +91,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* Projections used with pagination. * Projections used with pagination.
* *
* @param pageable * @param pageable
* @return * @return
*/ */
@@ -99,7 +99,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* A DTO projection using a constructor expression in a manually declared query. * A DTO projection using a constructor expression in a manually declared query.
* *
* @param firstname * @param firstname
* @return * @return
*/ */
@@ -108,7 +108,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
/** /**
* A projection wrapped into an {@link Optional}. * A projection wrapped into an {@link Optional}.
* *
* @param lastname * @param lastname
* @return * @return
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2015 the original author or authors. * Copyright 2015-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2015 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -27,7 +27,7 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* Simple repository interface for {@link User} instances. The interface is used to declare so called query methods, * Simple repository interface for {@link User} instances. The interface is used to declare so called query methods,
* methods to retrieve single entities or collections of them. * methods to retrieve single entities or collections of them.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
* @author Christoph Strobl * @author Christoph Strobl
@@ -37,7 +37,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Find the user with the given username. This method will be translated into a query using the * Find the user with the given username. This method will be translated into a query using the
* {@link javax.persistence.NamedQuery} annotation at the {@link User} class. * {@link javax.persistence.NamedQuery} annotation at the {@link User} class.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
@@ -45,7 +45,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Uses {@link Optional} as return and parameter type. * Uses {@link Optional} as return and parameter type.
* *
* @param username * @param username
* @return * @return
*/ */
@@ -54,7 +54,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Find all users with the given lastname. This method will be translated into a query by constructing it directly * Find all users with the given lastname. This method will be translated into a query by constructing it directly
* from the method name as there is no other query declared. * from the method name as there is no other query declared.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
@@ -63,7 +63,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Returns all users with the given firstname. This method will be translated into a query using the one declared in * Returns all users with the given firstname. This method will be translated into a query using the one declared in
* the {@link Query} annotation declared one. * the {@link Query} annotation declared one.
* *
* @param firstname * @param firstname
* @return * @return
*/ */
@@ -73,7 +73,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Returns all users with the given name as first- or lastname. This makes the query to method relation much more * Returns all users with the given name as first- or lastname. This makes the query to method relation much more
* refactoring-safe as the order of the method parameters is completely irrelevant. * refactoring-safe as the order of the method parameters is completely irrelevant.
* *
* @param name * @param name
* @return * @return
*/ */
@@ -82,7 +82,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Returns the total number of entries deleted as their lastnames match the given one. * Returns the total number of entries deleted as their lastnames match the given one.
* *
* @param lastname * @param lastname
* @return * @return
*/ */
@@ -91,7 +91,7 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Returns a {@link Slice} counting a maximum number of {@link Pageable#getPageSize()} users matching given criteria * Returns a {@link Slice} counting a maximum number of {@link Pageable#getPageSize()} users matching given criteria
* starting at {@link Pageable#getOffset()} without prior count of the total number of elements available. * starting at {@link Pageable#getOffset()} without prior count of the total number of elements available.
* *
* @param lastname * @param lastname
* @param page * @param page
* @return * @return
@@ -100,23 +100,23 @@ public interface SimpleUserRepository extends CrudRepository<User, Long> {
/** /**
* Return the first 2 users ordered by their lastname asc. * Return the first 2 users ordered by their lastname asc.
* *
* <pre> * <pre>
* Example for findFirstK / findTopK functionality. * Example for findFirstK / findTopK functionality.
* </pre> * </pre>
* *
* @return * @return
*/ */
List<User> findFirst2ByOrderByLastnameAsc(); List<User> findFirst2ByOrderByLastnameAsc();
/** /**
* Return the first 2 users ordered by the given {@code sort} definition. * Return the first 2 users ordered by the given {@code sort} definition.
* *
* <pre> * <pre>
* This variant is very flexible because one can ask for the first K results when a ASC ordering * This variant is very flexible because one can ask for the first K results when a ASC ordering
* is used as well as for the last K results when a DESC ordering is used. * is used as well as for the last K results when a DESC ordering is used.
* </pre> * </pre>
* *
* @param sort * @param sort
* @return * @return
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -23,7 +23,7 @@ import org.springframework.data.jpa.domain.AbstractPersistable;
/** /**
* Sample user class. * Sample user class.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */
@@ -51,7 +51,7 @@ public class User extends AbstractPersistable<Long> {
/** /**
* Returns the username. * Returns the username.
* *
* @return * @return
*/ */
public String getUsername() { public String getUsername() {

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2014-2016 the original author or authors. * Copyright 2014-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -31,7 +31,7 @@ import org.springframework.data.jpa.repository.support.JpaRepositoryFactory;
/** /**
* Test case showing how to use the basic {@link GenericDaoFactory} * Test case showing how to use the basic {@link GenericDaoFactory}
* *
* @author Oliver Gierke * @author Oliver Gierke
*/ */
public class BasicFactorySetup { public class BasicFactorySetup {
@@ -45,7 +45,7 @@ public class BasicFactorySetup {
/** /**
* Creates a {@link SimpleUserRepository} instance. * Creates a {@link SimpleUserRepository} instance.
* *
* @throws Exception * @throws Exception
*/ */
@Before @Before

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2014 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licenseimport static org.junit.Assert.*; * Licenseimport static org.junit.Assert.*;
@@ -35,7 +35,7 @@ import org.springframework.data.repository.CrudRepository;
/** /**
* This unit tests shows plain usage of {@link SimpleJpaRepository}. * This unit tests shows plain usage of {@link SimpleJpaRepository}.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2013-2016 the original author or authors. * Copyright 2013-2018 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -29,7 +29,7 @@ import org.springframework.transaction.annotation.Transactional;
/** /**
* Integration test to show how to use {@link Cacheable} with a Spring Data repository. * Integration test to show how to use {@link Cacheable} with a Spring Data repository.
* *
* @author Oliver Gierke * @author Oliver Gierke
* @author Thomas Darimont * @author Thomas Darimont
*/ */

Some files were not shown because too many files have changed in this diff Show More