[jbosstools-issues] [JBoss JIRA] Commented: (JBDS-1563) Refactoring a source model left transformation with mix of old and new model names

Pavol Srna (JIRA) jira-events at lists.jboss.org
Wed Feb 9 12:44:46 EST 2011


    [ https://issues.jboss.org/browse/JBDS-1563?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581186#comment-12581186 ] 

Pavol Srna commented on JBDS-1563:
----------------------------------

I assume the problem is still there. I went through these steps:
1) Import project from TEIIDDES-817
2) Refactor -> Rename: Employees.xmi to EatsText.xmi, you will see that the problem is no more there and the model is valid.
3) Try to refactor back to Employees.xmi. 
4) If it were corrected, the model should be valid in this point, right?

I used jbdevstudio-product-eap-linux-gtk-4.0.0.v201102090536R-H164-CR3.

> Refactoring a source model left transformation with mix of old and new model names
> ----------------------------------------------------------------------------------
>
>                 Key: JBDS-1563
>                 URL: https://issues.jboss.org/browse/JBDS-1563
>             Project: Developer Studio (JBoss Developer Studio)
>          Issue Type: Bug
>          Components: teiid
>    Affects Versions: 4.0.0.CR2
>            Reporter: Paul Nittel
>            Assignee: Barry LaFond
>            Priority: Blocker
>             Fix For: 4.0.0.CR3
>
>
> I created a project containing a textfile model, a view model (EatsText) which depends on the textfile model. I then stacked another model (UsesText) on top and added a concat sequence to make a fullname. Saved, executed and it looked good.
> Then, I refactored EatsTest to Employees and got a validation error in UsesText. When I looked at the transformation, here's what I found:
> SELECT
>                 EatsText.et.lastName, Employees.et.firstName, Employees.et.middleName, CONCAT2(EatsText.et.lastName, CONCAT2(', ', CONCAT2(EatsText.et.firstName, CONCAT2(' ', LEFT(EatsText.et.middleName, 1))))) AS FullName, Employees.et.empId, Employees.et.department, Employees.et.annualSalary, Employees.et.title, Employees.et.homePhone, Employees.et.mgrId, Employees.et.street, Employees.et.city, Employees.et.state, Employees.et.ZipCode
>         FROM
>                 EatsText.et
> It has both the old and refactored names in it. Oddly, the SELECT contains both--I could see where the SELECT could be right and the FROM wrong.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list