[teiid-issues] [JBoss JIRA] (TEIID-4421) Teiid Translator per source/version

Steven Hawkins (JIRA) issues at jboss.org
Fri Sep 9 10:17:00 EDT 2016


     [ https://issues.jboss.org/browse/TEIID-4421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Steven Hawkins resolved TEIID-4421.
-----------------------------------
    Fix Version/s: 9.1
       Resolution: Done


The change is backwards compatible, but also allow for Embedded to have a notion of override translators.  The methods are as follows:

addTranslator(Class) - if the class is annotated as a Translator, then we'll be able to create new instances.  Otherwise, we'll assume the old behavior and add a single instance.

addTranslator(String, ExecutionFactory) - will add a single shared instance.

addTranslator(String, String, Map<String, String>) - a new methods that adds an override translator.

So to have the per source/version behavior, your current code would need to use the addTranslator(Class) method.

Also the deprecated addTranslator(ExecutionFactory) method was removed.

> Teiid Translator per source/version
> -----------------------------------
>
>                 Key: TEIID-4421
>                 URL: https://issues.jboss.org/browse/TEIID-4421
>             Project: Teiid
>          Issue Type: Feature Request
>          Components: Embedded
>            Reporter: Mark Tawk
>            Assignee: Steven Hawkins
>             Fix For: 9.1
>
>
> Teiid actually uses a single translator to connect to a single source/version. However in the case of translators that auto-configure to the given version it is expected to manage creating new instances when necessary.
> Case reproduced when connecting to 2 DBs, one on SQL Server 2012 and another on SQL Server 2008. The pagination SQL translation of SQL Server 2012 does not work on 2008.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the teiid-issues mailing list