Introduce common interface for elements in mapping that has metaattributes

Description

Accessing metaattributes is very non-easy since they are available on classes that otherwise has nothing in common.

Currently:
PersistentClass and Property

Soon:
Component

I would like to add something like:

interface MetaAttributeContainer {
public java.util.Map getMetaAttributes();
public MetaAttribute getMetaAttribute(String attributeName);
}

And then MetaAttributeHelper (in tools) can handle all the various
combos of interpreting the metaattributes.

Environment

None

Assignee

Unassigned

Reporter

Max Rydahl Andersen

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Configure