Show Table of Contents
10.7. Development Considerations
MetadataRepositoryinstances are created on a per VDB basis and may be called concurrently for the load of multiple models.
- See the
MetadataFactoryand theorg.teiid.metadatapackage javadocs for metadata construction methods and objects. For example if you use your own DDL, then call theMetadataFactory.parse(Reader)method. If you need access to files in a VDB zip deployment, then use theMetadataFactory.getVDBResourcesmethod.
- Use the
MetadataFactory.addPermissionand addMetadataFactory.addColumnPermissionmethod to grant permissions on the given metadata objects to the named roles. The roles should be declared in your vdb.xml, which is also where they are typically tied to container roles.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.