<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Verdana; font-size: 12pt; color: #000000'>I agree, the right thing to do is make the metamodel change. It would help with refactoring (on your delete example).<br><br>As far as your side-note, the "Refactoring" framework in Designer has always been "weak" at best. We've always envisioned a framework that allowed "Preview the Changes" similar to what Java/Eclipse.&nbsp; In some cases, of course, we'll need user-interaction to make decisions and can't be derived.<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: "teiid-designer-dev" &lt;teiid-designer-dev@lists.jboss.org&gt;<br>Sent: Tuesday, July 13, 2010 2:21:57 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 2:06 PM, 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);">Would the Materialized Physical table be just an "EReference of somekind? Seems like it since it'll be "external" to the virtual model.<br></div></div></span></blockquote><div><br></div><div>Yes, it would be an external reference, but I'm not sure what your point is about it being external. &nbsp;Local and External references aren't really treated much differently.</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);">You've hacked before JPAV....&nbsp; what would it take? :)<br></div></div></span></blockquote><div><br></div><div>I didn't say it's easy, just that it should be done. &nbsp;It's definitely too difficult to explain in an e-mail. &nbsp;If you can't figure it out from similar past changes made to metamodels (such as the recent changes to the XML Document metamodel), then I hopefully will have some time next week to take a look.</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);">The solution I have locally now would just have to tweak the get/set methods on the virtual table.<br></div></div></span></blockquote><br></div><div>But have you taken into account what happens when a materialized model gets deleted, either from the workspace or the VDB?</div><div><br></div><div>As an aside, there might also be something we need to address regarding renames, for any type of model, not just materialization models. &nbsp;Seems like if there is a corresponding model in one or more VDBs, we ought to ask the user whether they want to rename the models within those, too. &nbsp;Impact would be we'd need to create a new VDB instance for all VDBs in the workspace during a rename to query their contents.</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>