DATAREST-1170 - Update copyright years to 2018.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,7 +19,7 @@ import org.springframework.data.annotation.Id;
|
||||
|
||||
/**
|
||||
* Base class for persistent classes.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
*/
|
||||
@@ -29,7 +29,7 @@ public class AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the identifier of the entity.
|
||||
*
|
||||
*
|
||||
* @return the id
|
||||
*/
|
||||
public Long getId() {
|
||||
@@ -44,7 +44,7 @@ public class AbstractPersistentEntity {
|
||||
this.id = null;
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see java.lang.Object#equals(java.lang.Object)
|
||||
*/
|
||||
@@ -64,7 +64,7 @@ public class AbstractPersistentEntity {
|
||||
return this.id.equals(that.getId());
|
||||
}
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see java.lang.Object#hashCode()
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -19,7 +19,7 @@ import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* An address.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
public class Address {
|
||||
@@ -28,7 +28,7 @@ public class Address {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Address} from the given street, city and country.
|
||||
*
|
||||
*
|
||||
* @param street must not be {@literal null} or empty.
|
||||
* @param city must not be {@literal null} or empty.
|
||||
* @param country must not be {@literal null} or empty.
|
||||
@@ -46,7 +46,7 @@ public class Address {
|
||||
|
||||
/**
|
||||
* Returns a copy of the current {@link Address} instance which is a new entity in terms of persistence.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Address getCopy() {
|
||||
@@ -55,7 +55,7 @@ public class Address {
|
||||
|
||||
/**
|
||||
* Returns the street.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getStreet() {
|
||||
@@ -64,7 +64,7 @@ public class Address {
|
||||
|
||||
/**
|
||||
* Returns the city.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getCity() {
|
||||
@@ -73,7 +73,7 @@ public class Address {
|
||||
|
||||
/**
|
||||
* Returns the country.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getCountry() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -24,7 +24,7 @@ import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* A customer.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
* @author Mark Paluch
|
||||
@@ -37,7 +37,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Customer} from the given parameters.
|
||||
*
|
||||
*
|
||||
* @param id the unique id;
|
||||
* @param emailAddress must not be {@literal null} or empty.
|
||||
* @param firstname must not be {@literal null} or empty.
|
||||
@@ -58,7 +58,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Adds the given {@link Address} to the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @param address must not be {@literal null}.
|
||||
*/
|
||||
public void add(Address address) {
|
||||
@@ -69,7 +69,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the firstname of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getFirstname() {
|
||||
@@ -78,7 +78,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Sets the firstname of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @param firstname
|
||||
*/
|
||||
public void setFirstname(String firstname) {
|
||||
@@ -87,7 +87,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the lastname of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getLastname() {
|
||||
@@ -96,7 +96,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Sets the lastname of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @param lastname
|
||||
*/
|
||||
public void setLastname(String lastname) {
|
||||
@@ -105,7 +105,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the {@link EmailAddress} of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public EmailAddress getEmailAddress() {
|
||||
@@ -114,7 +114,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Sets the emailAddress of the {@link Customer}.
|
||||
*
|
||||
*
|
||||
* @param emailAddress
|
||||
*/
|
||||
public void setEmailAddress(EmailAddress emailAddress) {
|
||||
@@ -123,7 +123,7 @@ public class Customer extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Return the {@link Customer}'s addresses.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Set<Address> getAddresses() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +22,7 @@ import org.springframework.data.repository.query.Param;
|
||||
|
||||
/**
|
||||
* Repository interface to access {@link Customer}s.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
*/
|
||||
@@ -30,7 +30,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
|
||||
|
||||
/**
|
||||
* Finds all {@link Customer}s with the given lastname.
|
||||
*
|
||||
*
|
||||
* @param lastname
|
||||
* @return
|
||||
*/
|
||||
@@ -38,7 +38,7 @@ public interface CustomerRepository extends CrudRepository<Customer, Long> {
|
||||
|
||||
/**
|
||||
* Finds the Customer with the given {@link EmailAddress}.
|
||||
*
|
||||
*
|
||||
* @param emailAddress
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -28,7 +28,7 @@ import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
|
||||
|
||||
/**
|
||||
* Value object to represent email addresses.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
*/
|
||||
@JsonSerialize(using = ToStringSerializer.class)
|
||||
@@ -40,7 +40,7 @@ public final class EmailAddress {
|
||||
|
||||
/**
|
||||
* Creates a new {@link EmailAddress} from the given {@link String} representation.
|
||||
*
|
||||
*
|
||||
* @param emailAddress must not be {@literal null} or empty.
|
||||
*/
|
||||
@JsonCreator
|
||||
@@ -52,7 +52,7 @@ public final class EmailAddress {
|
||||
/**
|
||||
* Returns whether the given {@link String} is a valid {@link EmailAddress} which means you can safely instantiate the
|
||||
* class.
|
||||
*
|
||||
*
|
||||
* @param candidate
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -30,7 +30,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Creates a new {@link LineItem} for the given {@link Product}.
|
||||
*
|
||||
*
|
||||
* @param product must not be {@literal null}.
|
||||
*/
|
||||
public LineItem(Product product) {
|
||||
@@ -39,7 +39,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Creates a new {@link LineItem} for the given {@link Product} and amount.
|
||||
*
|
||||
*
|
||||
* @param product must not be {@literal null}.
|
||||
* @param amount
|
||||
*/
|
||||
@@ -56,7 +56,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Returns the id of the {@link Product} the {@link LineItem} refers to.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Long getProductId() {
|
||||
@@ -65,7 +65,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Returns the amount of {@link Product}s to be ordered.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public int getAmount() {
|
||||
@@ -74,7 +74,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Returns the price a single unit of the {@link LineItem}'s product.
|
||||
*
|
||||
*
|
||||
* @return the price
|
||||
*/
|
||||
public BigDecimal getUnitPrice() {
|
||||
@@ -83,7 +83,7 @@ public class LineItem {
|
||||
|
||||
/**
|
||||
* Returns the total for the {@link LineItem}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public BigDecimal getTotal() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Order} for the given {@link org.springframework.data.rest.tests.gemfire.Customer}.
|
||||
*
|
||||
*
|
||||
* @param id order ID
|
||||
* @param customerId must not be {@literal null}.
|
||||
* @param shippingAddress must not be {@literal null}.
|
||||
@@ -56,7 +56,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Adds the given {@link LineItem} to the {@link Order}.
|
||||
*
|
||||
*
|
||||
* @param lineItem
|
||||
*/
|
||||
public void add(LineItem lineItem) {
|
||||
@@ -66,7 +66,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
/**
|
||||
* Returns the id of the {@link org.springframework.data.rest.tests.gemfire.Customer} who placed the
|
||||
* {@link Order}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Long getCustomerId() {
|
||||
@@ -75,7 +75,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the billing {@link Address} for this order.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Address getBillingAddress() {
|
||||
@@ -84,7 +84,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the shipping {@link Address} for this order;
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Address getShippingAddress() {
|
||||
@@ -93,7 +93,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns all {@link LineItem}s currently belonging to the {@link Order}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Set<LineItem> getLineItems() {
|
||||
@@ -102,7 +102,7 @@ public class Order extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the total of the {@link Order}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public BigDecimal getTotal() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2017 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -26,7 +26,7 @@ import org.springframework.util.Assert;
|
||||
|
||||
/**
|
||||
* A product.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
* @author Mark Paluch
|
||||
@@ -40,7 +40,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Product} with the given name.
|
||||
*
|
||||
*
|
||||
* @param id a unique Id
|
||||
* @param name must not be {@literal null} or empty.
|
||||
* @param price must not be {@literal null} or less than or equal to zero.
|
||||
@@ -51,7 +51,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Creates a new {@link Product} from the given name and description.
|
||||
*
|
||||
*
|
||||
* @param id a unique Id
|
||||
* @param name must not be {@literal null} or empty.
|
||||
* @param price must not be {@literal null} or less than or equal to zero.
|
||||
@@ -72,7 +72,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Sets the attribute with the given name to the given value.
|
||||
*
|
||||
*
|
||||
* @param name must not be {@literal null} or empty.
|
||||
* @param value
|
||||
*/
|
||||
@@ -89,7 +89,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the {@link Product}'s name.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getName() {
|
||||
@@ -98,7 +98,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the {@link Product}'s description.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public String getDescription() {
|
||||
@@ -107,7 +107,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns all the custom attributes of the {@link Product}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public Map<String, String> getAttributes() {
|
||||
@@ -116,7 +116,7 @@ public class Product extends AbstractPersistentEntity {
|
||||
|
||||
/**
|
||||
* Returns the price of the {@link Product}.
|
||||
*
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
public BigDecimal getPrice() {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -22,7 +22,7 @@ import org.springframework.data.repository.CrudRepository;
|
||||
|
||||
/**
|
||||
* Repository interface to access {@link Product}s.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
*/
|
||||
@@ -30,7 +30,7 @@ public interface ProductRepository extends CrudRepository<Product, Long> {
|
||||
|
||||
/**
|
||||
* Returns a list of {@link Product}s having a description which contains the given snippet.
|
||||
*
|
||||
*
|
||||
* @param the search string
|
||||
* @return
|
||||
*/
|
||||
@@ -38,7 +38,7 @@ public interface ProductRepository extends CrudRepository<Product, Long> {
|
||||
|
||||
/**
|
||||
* Returns all {@link Product}s having the given attribute value.
|
||||
*
|
||||
*
|
||||
* @param attribute
|
||||
* @param value
|
||||
* @return
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2012-2016 the original author or authors.
|
||||
* Copyright 2012-2018 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -25,7 +25,7 @@ import org.springframework.data.util.AnnotatedTypeScanner;
|
||||
|
||||
/**
|
||||
* Spring JavaConfig configuration class to setup a Spring container and infrastructure components.
|
||||
*
|
||||
*
|
||||
* @author Oliver Gierke
|
||||
* @author David Turanski
|
||||
*/
|
||||
|
||||
@@ -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");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -26,7 +26,7 @@ import org.springframework.test.context.ContextConfiguration;
|
||||
@ContextConfiguration(classes = GemfireRepositoryConfig.class)
|
||||
public class GemfireWebTests extends CommonWebTests {
|
||||
|
||||
/*
|
||||
/*
|
||||
* (non-Javadoc)
|
||||
* @see org.springframework.data.rest.webmvc.AbstractWebIntegrationTests#expectedRootLinkRels()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user