Commit 0b3279a5 authored by Matija Obreza's avatar Matija Obreza Committed by Maxym Borodenko
Browse files

Copyable: Allow copying of @LastModifiedDate

parent 8f4c7489
...@@ -117,8 +117,8 @@ public interface Copyable<T> { ...@@ -117,8 +117,8 @@ public interface Copyable<T> {
|| field.isAnnotationPresent(LastModifiedBy.class) || field.isAnnotationPresent(LastModifiedBy.class)
// or has @CreatedDate // or has @CreatedDate
|| field.isAnnotationPresent(CreatedDate.class) || field.isAnnotationPresent(CreatedDate.class)
// or has @LastModifiedDate // or has @LastModifiedDate
|| field.isAnnotationPresent(LastModifiedDate.class) // || field.isAnnotationPresent(LastModifiedDate.class)
// or has @NotCopyable // or has @NotCopyable
|| field.isAnnotationPresent(NotCopyable.class)); || field.isAnnotationPresent(NotCopyable.class));
......
...@@ -147,7 +147,7 @@ public class CopyableTest { ...@@ -147,7 +147,7 @@ public class CopyableTest {
assertThat(copy.myCreatedBy, not(source.myCreatedBy)); assertThat(copy.myCreatedBy, not(source.myCreatedBy));
assertThat(copy.myLastModifiedBy, not(source.myLastModifiedBy)); assertThat(copy.myLastModifiedBy, not(source.myLastModifiedBy));
assertThat(copy.myCreatedDate, not(source.myCreatedDate)); assertThat(copy.myCreatedDate, not(source.myCreatedDate));
assertThat(copy.myLastModifiedDate, not(source.myLastModifiedDate)); assertThat(copy.myLastModifiedDate, is(source.myLastModifiedDate));
assertThat(copy.myNotCopyable, not(source.myNotCopyable)); assertThat(copy.myNotCopyable, not(source.myNotCopyable));
assertThat(copy.finalInt, is(42)); assertThat(copy.finalInt, is(42));
assertThat(copy.defaultInt, is(source.defaultInt)); assertThat(copy.defaultInt, is(source.defaultInt));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment