<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 12pt; color: #000000'>I took an hour this morning and made an attempt to hack the relational metamodel, but it failed.<br><br>Would the Materialized Physical table be just an "EReference of somekind? Seems like it since it'll be "external" to the virtual model.<br><br>You've hacked before JPAV....&nbsp; what would it take? :)<br><br>The solution I have locally now would just have to tweak the get/set methods on the virtual table.<br><br>Barry<br><br>----- Original Message -----<br>From: "John Verhaeg" &lt;jverhaeg@redhat.com&gt;<br>To: "Barry Lafond" &lt;blafond@redhat.com&gt;<br>Cc: "John Doyle" &lt;jdoyle@redhat.com&gt;, "teiid-designer-dev" &lt;teiid-designer-dev@lists.jboss.org&gt;, "teiid-dev" &lt;teiid-dev@lists.jboss.org&gt;<br>Sent: Tuesday, July 13, 2010 12:05:48 PM GMT -06:00 US/Canada Central<br>Subject: Re: [teiid-designer-dev] Materialized Views<br><br><br><div><div>On Jul 13, 2010, at 10:04 AM, Barry Lafond wrote:</div><br class="Apple-interchange-newline"><blockquote><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><div><div style="font-family: Verdana; font-size: 12pt; color: rgb(0, 0, 0);">JPAV, do our validation rules have to be implemented via EMF? and/or can they be applied to a simple IResource (i.e. xxxx.vdb file)?<br></div></div></span></blockquote><div><br></div><div>No, they can be applied to either.</div><br><blockquote><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><div><div style="font-family: Verdana; font-size: 12pt; color: rgb(0, 0, 0);">&gt; That all said, would it be wrong to NOT treat these Materialization Physical models as dependencies? Users would be totally responsible for including them in a VDB containing the original virtual models?<br></div></div></span></blockquote><div><br></div><div>I think it would be wrong, yes. &nbsp;I understand it's a bit more work to modify our metamodels to handle this, but I'd say we need to.</div><br><blockquote><span class="Apple-style-span" style="border-collapse: separate; font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><div><div style="font-family: Verdana; font-size: 12pt; color: rgb(0, 0, 0);"><div style="font-family: 'Times New Roman'; font-size: 12pt; color: rgb(0, 0, 0);"><div style="font-family: Verdana; font-size: 12pt; color: rgb(0, 0, 0);">While it certainly would be best to add them automatically like we do for other models, would it be possibly to flag a missing Materialization Physical model as a validation error on a VDB without changing the metamodel?&nbsp; Would that be good enough?<br></div></div></div></div></span></blockquote><br></div><div>It's possible, but as Barry pointed out, it's not very practical. &nbsp;The VDB framework doesn't deal with EMF at all, and to determine that a materialization model is referenced, we'd need to parse the model. &nbsp;That would also mean every model would be parsed twice, once by the normal build process and again by the VDB validation process.</div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;"><div style=""><div>JPAV</div><div><br></div></div></span><br class="Apple-interchange-newline"></span><br class="Apple-interchange-newline">
</div>
<br></div></body></html>