ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bahri Gencsoy <bahri.genc...@gmail.com>
Subject Storing integer array
Date Thu, 12 Jan 2006 22:13:12 GMT
I need a simple thing, but afraid that the answer is not so simple.

How can I store retrieve int array (*int[]*) seamlessly as in the following

public class SimpleBean{
  private int[] myArray;
  public void setArray(int[] array){
  public int[] getArray(){
    return myArray;

Which SQL data type I should use (I guess Object) and how should I write the
mapping XML file?

BTW, storing int[] in DB may not be a good practice but a fast one. I know
that I need to normalize DB.

Thanks in advance

View raw message