Skip to content

Commit

Permalink
TEIID-3409 PostgreSQLExecutionFactory TranslatorProperty annotation i…
Browse files Browse the repository at this point in the history
…n wrong place

when I use postgresql translator of Teiid 8.10.0, it throw when deploying on jboss-as-7.4
the @TranslatorProperty annoation position is not right accoring to code in org.teiid.deployers.TranslatorUtil
getSetter method code
if (method.getName().startsWith("get")) { //$NON-NLS-1$
	setter = "set"+setter.substring(3);//$NON-NLS-1$
}
else if (method.getName().startsWith("is")) { //$NON-NLS-1$
	setter = "set"+setter.substring(2); //$NON-NLS-1$
}
else {
	setter = "set"+method.getName().substring(0,1).toUpperCase()+method.getName().substring(1); //$NON-NLS-1$
}
this annoation can only be annoated on getXXX(), or isXXX() method.
  • Loading branch information
Xian Liu committed Apr 1, 2015
1 parent 0048faf commit 48ef8c6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -762,20 +762,20 @@ public void visit(DerivedColumn obj) {
};
}

@TranslatorProperty(display="PostGIS Version", description="The version of the PostGIS extension.",advanced=true)
public void setPostGisVersion(String postGisVersion) {
this.postGisVersion = Version.getVersion(postGisVersion);
}

@TranslatorProperty(display="PostGIS Version", description="The version of the PostGIS extension.",advanced=true)
public String getPostGisVersion() {
return postGisVersion.toString();
}

@TranslatorProperty(display="Proj support enabled", description="If PostGIS Proj support is enabled for ST_TRANSFORM",advanced=true)
public boolean isProjSupported() {
return projSupported;
}

@TranslatorProperty(display="Proj support enabled", description="If PostGIS Proj support is enabled for ST_TRANSFORM",advanced=true)
public void setProjSupported(boolean projSupported) {
this.projSupported = projSupported;
}
Expand Down

0 comments on commit 48ef8c6

Please sign in to comment.