Choosing carefuly datatypes, finally a complex Class is created, then using a HashMap, those first Class objects get mapped with a key. and now I can create thousands and access them, add, delete, etc..
Now if I want to store them in a DB..
So I start from scratch? have to create the table?, again take care about datatypes? to make fit my objects inside the DB, furthermore I have to make a lot of function to "transform" data.. then SQL to make the queries..two languages, first to process, second to access data.. with this things I remember actual languages could be the punched cards of future ones.. (of course if I want a web interface I could have to think in a third one)
I think to use java persistense, but that's not a DB..
Are you doing this twice out there? any advices are welcome!
EDIT:
I have seen there are some tools as XStream or Simple to pass objects to XML (and vice versa), but well, of course XML is not a DB.