为什么Odata(通过Teiid)只显示某些表而不显示其他表?

时间:2014-06-26 21:12:15

标签: odata teiid

我设置了一个Teiid实例来查看各种表格。当我设置VDB时,我指定了一些表格来显示:

enter image description here

但是,当我以chrome(http://www.someserver.com:8080/odata/JTrac)查看XML时,只显示SDM_2D_LINE_TRACKER:

enter image description here

知道为什么会这样吗?为什么其他表格不显示?如果我在“TABLES”下查看一些表名(http://www.someserver.com:8080/odata/JTrac/Tables)。这是XML的一个示例,但您可以看到ATTACHMENTS,CALENDAR等出现:

<?xml version='1.0' encoding='utf-8'?><feed xmlns="http://www.w3.org/2005/Atom" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xml:base="http://amr-dsiprod05:8080/odata/JTrac/"><title type="text">Tables</title><id>http://amr-dsiprod05:8080/odata/JTrac//Tables</id><updated>2014-06-26T21:00:34Z</updated><link rel="self" title="Tables" href="Tables"/><entry><id>http://amr-dsiprod05:8080/odata/JTrac/Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')</id><title type="text"/><updated>2014-06-26T21:00:34Z</updated><author><name/></author><link rel="edit" title="Tables" href="Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Columns" type="application/atom+xml;type=entry" title="Columns" href="Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')/Columns"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/KeyColumns" type="application/atom+xml;type=entry" title="KeyColumns" href="Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')/KeyColumns"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Keys" type="application/atom+xml;type=entry" title="Keys" href="Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')/Keys"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Schemas" type="application/atom+xml;type=entry" title="Schemas" href="Tables(Name='ATTACHMENTS',SchemaName='JTracOracle',VDBName='JTrac')/Schemas"/><category term="SYS.Tables" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/><content type="application/xml"><m:properties><d:OID m:type="Edm.Int32" m:null="true"/><d:Description m:null="true"/><d:Type>Table</d:Type><d:IsSystem m:type="Edm.Boolean">false</d:IsSystem><d:IsMaterialized m:type="Edm.Boolean">false</d:IsMaterialized><d:Name>ATTACHMENTS</d:Name><d:NameInSource>"JTRAC"."ATTACHMENTS"</d:NameInSource><d:Cardinality m:type="Edm.Int32">-1</d:Cardinality><d:UID>mmuuid:2967df2e-4904-4bb7-9854-1f21a90e5f8a</d:UID><d:IsPhysical m:type="Edm.Boolean">true</d:IsPhysical><d:SupportsUpdates m:type="Edm.Boolean">true</d:SupportsUpdates><d:VDBName>JTrac</d:VDBName><d:SchemaName>JTracOracle</d:SchemaName></m:properties></content></entry><entry><id>http://amr-dsiprod05:8080/odata/JTrac/Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')</id><title type="text"/><updated>2014-06-26T21:00:34Z</updated><author><name/></author><link rel="edit" title="Tables" href="Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Columns" type="application/atom+xml;type=entry" title="Columns" href="Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')/Columns"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/KeyColumns" type="application/atom+xml;type=entry" title="KeyColumns" href="Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')/KeyColumns"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Keys" type="application/atom+xml;type=entry" title="Keys" href="Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')/Keys"/><link rel="http://schemas.microsoft.com/ado/2007/08/dataservices/related/Schemas" type="application/atom+xml;type=entry" title="Schemas" href="Tables(Name='CALENDAR',SchemaName='JTracOracle',VDBName='JTrac')/Schemas"/><category term="SYS.Tables" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme"/><content type="application/xml"><m:properties><d:OID m:type="Edm.Int32" m:null="true"/><d:Description m:null="true"/><d:Type>Table</d:Type><d:IsSystem m:type="Edm.Boolean">false</d:IsSystem><d:IsMaterialized m:type="Edm.Boolean">false</d:IsMaterialized><d:Name>CALENDAR</d:Name><d:NameInSource>"JTRAC"."CALENDAR"</d:NameInSource><d:Cardinality m:type="Edm.Int32">-1</d:Cardinality><d:UID>mmuuid:1447f956-9880-402e-8dc6-58aac15c1df9</d:UID><d:IsPhysical m:type="Edm.Boolean">true</d:IsPhysical><d:SupportsUpdates m:type="Edm.Boolean">true</d:SupportsUpdates><d:VDBName>JTrac</d:VDBName><d:SchemaName>JTracOracle</d:SchemaName></m:properties></content></entry>

它出现的SDM_2D_LINE_TRACKER有什么特别之处?

1 个答案:

答案 0 :(得分:2)

如果表中指定了标识密钥(主密钥),它将显示出来。 OData实体查找机制需要基于身份的查找。如果正在跳过表,则会有日志条目通知用户。