Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Concatenate columns in IBatis  RSS feed

 
Yan Hu
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!