Hi,
 
Is it possible to insert multiple rows in a table from a single java object using castor JDO?
 
For eg:
 
I have a class called test.java which has the following code:
 
public class test
{
   private java.util.Hashtable myList = new Hashtable();
   .......
  //set and get methods
  public java.util.Hashtable getMyList()
  {
      return this.myList;
  }
  public void setMyList(java.util.Hashtable myList)
  {
    this.myList = myList;
  }
};
 
I want that each element in this Hashtable (which is in test.java) should go into the table as a row.
 
The table in the database has two columns---name and value.
So the key in the Hashtable should be inserted in the name cloumn in the databse table and the value in the Hashtable should be inserted in the value column in the database table.
 
 
Can anyone tell me if this is possible.
 
Thanks.
Trupti


signature


Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Reply via email to