How to ignore a certain Getter
in EntityView?
#1901
Labels
component: entity-view
kind: enhancement
workaround available
worth: medium
Implementing this has a medium worth
First of all, thank you very much to the authors of the library for their great work. This project is truly remarkable!
The scenario is as follows: In an EntityView, besides the Getters for fields retrieved from the database, there might also be defined translation fields used to store values that are complexly transformed and translated based on certain fields in a view.
Here is a rough scenario:
Although it seems that using the constructor of an abstract class can solve this problem, I find that abstract classes have too many limitations and are extremely cumbersome to use. Interfaces are more convenient and also support multiple inheritances.
It would be great if we could add a
@MappingIgnore
annotation to ignore specific getters. I wonder if the maintainers of the library have any thoughts on adding this feature?The text was updated successfully, but these errors were encountered: