此内容没有您所选择的语言版本。
Chapter 12. DDL Metadata
12.1. DDL Metadata
复制链接链接已复制到粘贴板!
		A VDB can define models/schemas using DDL. Here is a small example of how one can define a view inside the 
-vdb.xml file. See the <metadata> element under <model>.
	Example 12.1. Example to show view definition
		Another complete DDL based example is at the end of this section.
	
Note
			The declaration of metadata using DDL, 
NATIVE or DDL-FILE is supported out of the box, however the MetadataRepository interface allows users to plug-in their own metadata facilities. For example, you can write a Hibernate based store that can feed the necessary metadata. You can find out more about custom metadata repositories in Red Hat JBoss Data Virtualization Development Guide: Server Development.
		Note
			The DDL based schema is not constrained to be defined only for the view models.
		
Note
			The full grammar for DDL is in the appendix.