Dto.java 433 B

12345678910111213141516171819
  1. package com.nuliji.tools.annotation;
  2. import java.lang.annotation.ElementType;
  3. import java.lang.annotation.Retention;
  4. import java.lang.annotation.RetentionPolicy;
  5. import java.lang.annotation.Target;
  6. /**
  7. * Created by GaoJie on 2017/11/3.
  8. */
  9. @Target(ElementType.TYPE)
  10. @Retention(RetentionPolicy.RUNTIME)
  11. public @interface Dto {
  12. /**
  13. * 对应的entity
  14. * @return
  15. */
  16. public Class entity() default Object.class;
  17. }