Hi Team,
Thank you for helping with your contributions to keep this very very useful project going strong.
Recently with the latest version when generating (with the eclipse plugin) we notice that our pre-existing annotations that we had added to the various fields are getting overwritten with '@generated' annotation.
For example:
+ @Generated(value="org.mybatis.generator.api.MyBatisGenerator", comments="Source field: xxx.xxx_info.physical_xxx_id")
+ private Integer physicalXXXId;
- /**
- * This field was generated by MyBatis Generator. This field corresponds to the database column xxx.xxx_info.physical_xxx_id
- * @mbg.generated
- */
- @QuerySqlField(index = true)
- @GridToStringExclude
- private Integer physicalXXXId;
As you can see above, the two pre-existing Apache Ignite annotations (QuerySqlField & GridToStringExclude) on the field got removed.
It would be really nice to retain the existing annotations when we add this @Generated annotation on the Java model objects. Note that, the methods added are left untouched, which is good.
This is really important for us as things won't work without these annotations....currently we plan to restore the annotations with scripts post generation, but its certainly not something i am looking forward to doing for long.
Greatly appreciate if we could fix this.
Thanks
Muthu
Hi Team,
Thank you for helping with your contributions to keep this very very useful project going strong.
Recently with the latest version when generating (with the eclipse plugin) we notice that our pre-existing annotations that we had added to the various fields are getting overwritten with '@generated' annotation.
For example:
As you can see above, the two pre-existing Apache Ignite annotations (
QuerySqlField&GridToStringExclude) on the field got removed.It would be really nice to retain the existing annotations when we add this
@Generatedannotation on the Java model objects. Note that, the methods added are left untouched, which is good.This is really important for us as things won't work without these annotations....currently we plan to restore the annotations with scripts post generation, but its certainly not something i am looking forward to doing for long.
Greatly appreciate if we could fix this.
Thanks
Muthu