mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-19 23:02:24 +00:00
#2636 - Remove deprecated @CreatedTimestamp and @UpdateTimestamp, migrate to @WhenCreated / @WhenModified
This commit is contained in:
1 parent
34ce77c17e
commit
c7ad5c5981
8 files changed
+22
-74
No files matched your search
@@ -1,7 +1,5 @@
|
||||
package org.tests.model;
|
||||
|
||||
import io.ebean.annotation.CreatedTimestamp;
|
||||
import io.ebean.annotation.UpdatedTimestamp;
|
||||
import io.ebean.annotation.WhenCreated;
|
||||
import io.ebean.annotation.WhenModified;
|
||||
|
||||
@@ -31,40 +29,40 @@ public class EGenProps {
|
||||
@WhenModified
|
||||
Timestamp whenModified;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
Timestamp tsCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
Timestamp tsUpdated;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
LocalDateTime ldtCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
LocalDateTime ldtUpdated;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
OffsetDateTime odtCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
OffsetDateTime odtUpdated;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
ZonedDateTime zdtCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
ZonedDateTime zdtUpdated;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
Instant instantCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
Instant instantUpdated;
|
||||
|
||||
@CreatedTimestamp
|
||||
@WhenCreated
|
||||
long longCreated;
|
||||
|
||||
@UpdatedTimestamp
|
||||
@WhenModified
|
||||
long longUpdated;
|
||||
|
||||
public Long getId() {
|
||||
|
||||
Reference in new issue
Block a user