This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JDBC and the fly likes How to Store Vector in a table? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to Store Vector in a table?" Watch "How to Store Vector in a table?" New topic
Author

How to Store Vector in a table?

SeetaramRao Rayarao
Greenhorn

Joined: Mar 30, 2007
Posts: 3
I have a class which contains a Vector of strings and hash table. How do I store data in a table? I need to store this class. I tried using JDO and Hibernet, but I did not find to store vector or Hashtable... please help me
Lars Arnbak
Greenhorn

Joined: Dec 22, 2008
Posts: 4
I don't know a way to store objects directly actually. But you can iterate through your vector and your hashtable, and put the elements in a db table in each iteration.

Have you tried that?

Regards


Later equals never!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to Store Vector in a table?
 
Similar Threads
Problem storing a vector
I want to iterate all elements in vector and store it in another vector..?
Storing an Java object in Access
JDBC
Store Vector in MySql database