Skip to content
Permalink
Browse files

Enable Version annotation for use with methods (#878)

  • Loading branch information...
jakekdodd authored and npurushe committed Jun 13, 2019
1 parent 0270f4a commit d1ced88e1a8df99234eba2b06754615bde331a0e
Showing with 2 additions and 1 deletion.
  1. +2 −1 requery/src/main/java/io/requery/Version.java
@@ -21,13 +21,14 @@
import java.lang.annotation.Target;

import static java.lang.annotation.ElementType.FIELD;
import static java.lang.annotation.ElementType.METHOD;
import static java.lang.annotation.RetentionPolicy.RUNTIME;

/**
* Defines a version attribute for optimistic locking. Field type must be a integer or long.
*/
@Documented
@Target(FIELD)
@Target({FIELD, METHOD})
@Retention(RUNTIME)
public @interface Version {
}

0 comments on commit d1ced88

Please sign in to comment.
You can’t perform that action at this time.