Skip to content

Commit 70bfbba

Browse files
committed
Update lic
1 parent 62f0593 commit 70bfbba

39 files changed

Lines changed: 497 additions & 441 deletions

src/main/java/org/springframework/data/ebean/annotation/Modifying.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2016 the original author or authors.
2+
* Copyright 2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,11 +16,7 @@
1616

1717
package org.springframework.data.ebean.annotation;
1818

19-
import java.lang.annotation.Documented;
20-
import java.lang.annotation.ElementType;
21-
import java.lang.annotation.Retention;
22-
import java.lang.annotation.RetentionPolicy;
23-
import java.lang.annotation.Target;
19+
import java.lang.annotation.*;
2420

2521
/**
2622
* Indicates a method should be regarded as Update{@link io.ebean.UpdateQuery} or SqlUpdate {@link io.ebean.SqlUpdate}.

src/main/java/org/springframework/data/ebean/annotation/Procedure.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2016 the original author or authors.
2+
* Copyright 2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,13 +16,10 @@
1616

1717
package org.springframework.data.ebean.annotation;
1818

19-
import java.lang.annotation.Documented;
20-
import java.lang.annotation.ElementType;
21-
import java.lang.annotation.Retention;
22-
import java.lang.annotation.RetentionPolicy;
23-
import java.lang.annotation.Target;
2419
import org.springframework.data.annotation.QueryAnnotation;
2520

21+
import java.lang.annotation.*;
22+
2623
/**
2724
* Annotation to declare stored procedure mappings directly on repository methods.
2825
*

src/main/java/org/springframework/data/ebean/annotation/Query.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2016 the original author or authors.
2+
* Copyright 2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,13 +16,10 @@
1616

1717
package org.springframework.data.ebean.annotation;
1818

19-
import java.lang.annotation.Documented;
20-
import java.lang.annotation.ElementType;
21-
import java.lang.annotation.Retention;
22-
import java.lang.annotation.RetentionPolicy;
23-
import java.lang.annotation.Target;
2419
import org.springframework.data.annotation.QueryAnnotation;
2520

21+
import java.lang.annotation.*;
22+
2623
/**
2724
* Annotation to declare finder queries directly on repository methods.
2825
*

src/main/java/org/springframework/data/ebean/domain/AbstractAuditableEntity.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2017 the original author or authors.
2+
* Copyright 2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -20,10 +20,11 @@
2020
import io.ebean.annotation.UpdatedTimestamp;
2121
import io.ebean.annotation.WhoCreated;
2222
import io.ebean.annotation.WhoModified;
23+
import org.springframework.data.domain.Auditable;
24+
25+
import javax.persistence.MappedSuperclass;
2326
import java.time.LocalDateTime;
2427
import java.util.Optional;
25-
import javax.persistence.MappedSuperclass;
26-
import org.springframework.data.domain.Auditable;
2728

2829
/**
2930
* Abstract base class for auditable entities. Stores the audition values in persistent fields.

src/main/java/org/springframework/data/ebean/domain/AbstractEntity.java

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2008-2017 the original author or authors.
2+
* Copyright 2017 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,19 +16,20 @@
1616

1717
package org.springframework.data.ebean.domain;
1818

19-
import java.util.ArrayList;
20-
import java.util.Collection;
21-
import java.util.Collections;
22-
import java.util.List;
23-
import javax.persistence.Id;
24-
import javax.persistence.MappedSuperclass;
25-
import javax.persistence.Transient;
2619
import org.springframework.data.domain.AfterDomainEventPublication;
2720
import org.springframework.data.domain.DomainEvents;
2821
import org.springframework.data.domain.Persistable;
2922
import org.springframework.util.Assert;
3023
import org.springframework.util.ClassUtils;
3124

25+
import javax.persistence.Id;
26+
import javax.persistence.MappedSuperclass;
27+
import javax.persistence.Transient;
28+
import java.util.ArrayList;
29+
import java.util.Collection;
30+
import java.util.Collections;
31+
import java.util.List;
32+
3233
/**
3334
* Abstract base class for entities. Allows parameterization of id type, chooses auto-generation and implements
3435
* {@link #equals(Object)} and {@link #hashCode()} based on that id.
Lines changed: 22 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
1+
/*
2+
* Copyright 2017 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.data.ebean.domain;
218

3-
import java.lang.annotation.Documented;
4-
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Retention;
6-
import java.lang.annotation.RetentionPolicy;
7-
import java.lang.annotation.Target;
19+
import java.lang.annotation.*;
820

921
/**
1022
* Annotation placed on types that should be treated as the root of an aggregate.
@@ -15,9 +27,9 @@
1527
@Target( {ElementType.TYPE, ElementType.ANNOTATION_TYPE})
1628
@Retention(RetentionPolicy.RUNTIME)
1729
public @interface AggregateRoot {
18-
/**
19-
* Get the String representation of the aggregate's type. Optional. This defaults to the simple name of the
20-
* annotated class.
21-
*/
22-
String value() default "";
30+
/**
31+
* Get the String representation of the aggregate's type. Optional. This defaults to the simple name of the
32+
* annotated class.
33+
*/
34+
String value() default "";
2335
}
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2017 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.data.ebean.domain;
218

319
import org.springframework.context.ApplicationEvent;
@@ -8,8 +24,8 @@
824
*/
925
public class DomainEvent extends ApplicationEvent {
1026

11-
public DomainEvent(Object source) {
12-
super(source);
13-
}
27+
public DomainEvent(Object source) {
28+
super(source);
29+
}
1430

1531
}
Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,25 @@
1+
/*
2+
* Copyright 2017 the original author or authors.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package org.springframework.data.ebean.domain;
218

3-
import java.lang.annotation.Documented;
4-
import java.lang.annotation.ElementType;
5-
import java.lang.annotation.Retention;
6-
import java.lang.annotation.RetentionPolicy;
7-
import java.lang.annotation.Target;
819
import org.springframework.stereotype.Component;
920

21+
import java.lang.annotation.*;
22+
1023
/**
1124
* Domain service use spring @Component
1225
*
@@ -17,5 +30,5 @@
1730
@Documented
1831
@Component
1932
public @interface DomainService {
20-
String value() default "";
33+
String value() default "";
2134
}

0 commit comments

Comments
 (0)