提交 3fdf32a4 编写于 作者: 梦境迷离's avatar 梦境迷离

1.add Accessor

2.support jacksonEnum
上级 71786295
......@@ -267,7 +267,7 @@ class Person extends scala.AnyRef {
- 说明
- `verbose` 指定是否开启详细编译日志。可选,默认`false`
- `nonTypeRefers` 指定不需要创建`Jackson``TypeReference`子类的枚举类型。
- `nonTypeRefers` 指定不需要创建`Jackson``TypeReference`子类的枚举类型。可选,默认`Nil`
- 支持`case class``class`
- 如果枚举类型存在`TypeReference`的子类,则不会生成新的子类,也不会重复添加`@JsonScalaEnumeration`注解到参数上。这主要用于解决冲突问题。
......
......@@ -272,8 +272,8 @@ class Person extends scala.AnyRef {
The `jacksonEnum` annotation is used to provide `Jackson` serialization support for all Scala enumeration type parameters in the primary constructor of the class.
- Note
- `verbose` Whether to enable detailed log.
- `nonTypeRefers` Specifies the enumeration type of the `TypeReference` subclass of `Jackson` that does not need to be created.
- `verbose` Whether to enable detailed log. default is `false`.
- `nonTypeRefers` Specifies the enumeration type of the `TypeReference` subclass of `Jackson` that does not need to be created. default is `Nil`.
- Support `case class` and `class`.
- If the enumeration type has subclasses of `TypeReference`, no new subclasses will be generated,
and `JsonScalaEnumeration` annotation will not be added to the parameters repeatedly. This is mainly used to solve conflict problems.
......
......@@ -29,9 +29,11 @@ import scala.annotation.{ compileTimeOnly, StaticAnnotation }
* annotation to generate equals and hashcode method for classes.
*
* @author 梦境迷离
* @author choly
*
* @param verbose Whether to enable detailed log.
* @param nonTypeRefers Whether to not generate the subclass of the TypeReference for paramTypes of class.
* @since 2021/7/18
* @since 2021/8/3
* @version 1.0
*/
@compileTimeOnly("enable macro to expand macro annotations")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册