Version.java 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /*
  2. * Copyright (c) 2011-2023, baomidou (jobob@qq.com).
  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. package com.baomidou.mybatisplus.annotation;
  17. import java.lang.annotation.*;
  18. /**
  19. * 乐观锁注解
  20. * <p>
  21. * 支持的字段类型:
  22. * long,
  23. * Long,
  24. * int,
  25. * Integer,
  26. * java.util.Date,
  27. * java.sql.Timestamp,
  28. * java.time.LocalDateTime
  29. * java.time.Instant
  30. *
  31. * @author TaoYu
  32. * @since 2016-01-23
  33. */
  34. @Documented
  35. @Retention(RetentionPolicy.RUNTIME)
  36. @Target({ElementType.FIELD, ElementType.ANNOTATION_TYPE})
  37. public @interface Version {
  38. }