Skip to content

Commit 84ef9bc

Browse files
committed
Update AutoTimestamp annotation documentation
1 parent 5b50a4c commit 84ef9bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

grails-datastore-gorm/src/main/groovy/grails/gorm/annotation/AutoTimestamp.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
import java.lang.annotation.Target;
2222

2323
/**
24-
* A property annotation used to enable automatic updates to time objects
25-
* upon gorm modification events
24+
* A property annotation used to apply auto-timestamping on a field
25+
* upon gorm insert and update events
2626
*
2727
* @author Scott Murphy Heiberg
2828
* @since 7.0
@@ -31,8 +31,8 @@
3131
@Target({ElementType.FIELD})
3232
public @interface AutoTimestamp {
3333
/**
34-
* A qualifier boolean value that represents if update events
35-
* should be updated as well. Setting value to false only updates on creation events.
34+
* Whether to include auto-timestamping on update events.
35+
* Setting value to false only performs auto-timestamping on insert events.
3636
*/
3737
boolean value() default true;
3838
}

0 commit comments

Comments
 (0)