Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
We can specify MetaData via XML or annotations. The only way missing is via an API. I propose mirroring the XML structure with interfaces of the form
public interface MetaData
{
addExtension(String key, String value);
removeExtension(String key, String value);
...
}
public interface FileMetaData
{
addPackage(PackageMetaData pmd);
...
}
public interface PackageMetaData
{
addClass(ClassMetaData cmd)
...
}
public interface ClassMetaData
{
addField(FieldMetaData fmd)
...
}
public interface FieldMetaData
{
setInheritance(InheritanceMetaData inhmd)
...
}
and so on.
We would then require a method on the PMF to register the metadata.
If there are no objections to such a feature I'll propose a patch to try to provide all current JDO2 capabilities.