There are 2 modeldriven interfaces - WrapDescriptor and FinderDescriptor - that have a method named hiding(...), which you can use to specify which attributes, etc. you want to 'hide'.
I think it is usually done in your custom mapping class (which extends modeldriven's AbstractMapping class) where you wrap() your model objects.
Thanks a lot Ilian..
One more thing is regarding changing the display name of the attribute.
For example : connectionName should be displayed as "Connection Name"
Say ipaddress should be displayed as IP Address
So how we can achieve this in model driven as in annotation based we use
displayName = "Connection Name")
Your custom mapping class has a method describeFinderProperties(...) which accepts as a parameter a name of a resource file containing properties to customize your finder definitions (the resource file is usually located at src/main/resources/ folder in the plug-in's Maven module).
Inside the resource file you can put lines that look something like
The first variant should define the display name for finder property named connectionName for all of your model object, and the second variant - only for a particular model object. At least that's I suppose it should work (haven't tried it yet).
Thanks Llian for the solution.
We are able to achieve this as well.