The moose likes Object Relational Mapping and the fly likes Concatenate columns in IBatis Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Concatenate columns in IBatis" Watch "Concatenate columns in IBatis" New topic
Author

Concatenate columns in IBatis

Yan Hu
Greenhorn

Joined: Sep 07, 2004
Posts: 19
Hi guys:
I would like to concatenate a few columns and then map it onto a single property in a java bean
For example
Select col_a || col_b as id from aTable

When it runs, it complains about �|| col_b � as a invalid column. Obviously IBaits did not try to concatenate these 2 columns.

Thanks for any input.


Programming is an art<br />Yan Hu
 
 
subject: Concatenate columns in IBatis
 
Threads others viewed
Hibernate - compound column?
Basic question in Ant tool
Returning just a STRING from.......
Inserting | into oracle DB
Use PL/SQL Loop and variable
MyEclipse, The Clear Choice