JBoss.org Community Documentation

12.13.2. Function Mapping

The function-mapping element model is show below.

The jbosscmp-jdbc function-mapping element content model

Figure 12.18. The jbosscmp-jdbc function-mapping element content model


The allowed child elements are:

  • function-name : This required element gives the EJB-QL function name, e.g., concat, substring.

  • function-sql : This required element gives the SQL for the function as appropriate for the underlying database. Examples for a concat function include: (?1 || ?2), concat(?1, ?2), (?1 + ?2).