almost a month.. went home n all..
well so the ghost of linux, that was sitting on my neck has vanished in this perios so now no more linux stuff is going on. Linux is prettiely sitting on my machine as second OS. thats it.
now am concentrating on the much ignored part by me, Hibernate.
1. Connection problem
for long time I was not abel to get connection with HSQL db thru hibernate.
yday i could do that. finally.
well this is where i was wrong. I was trying to use the HSQL as a stnadalone in memory DB. i am not saying that we canot use the HSQL in that way, but at least i could not find out how..
finalyl this is what worked. I stsratedthe HSQL in server mode so as to accept multiple connections and then everythign worked out correctly. now i can view the tables in eclispe as well as i can connect to db simultaneously.
one change that i did was the connection name in hibernate was changed like this.
in hibernate.cfg.xml
original:
hibernate.connection.url was jdbc:hsqldb:test
now:
hibernate.connection.url is jdbc:hsqldb:hsql://localhost:9001
2. problem in saving multiple rows at one go
next problem i faced was i wanted to save multle rows into DB using single session.save().. passing a llist of my VO which will be individually represent the one one row in DB for corrosponding table. But seeming that is not possible todo. i had to revert back to inttarting on the list n using session.save() on one one object of the list.
3. QueryException: in expected
as of now am facing this problme. no solution still in sight.
am trying to get the data from the data thru hibernats session.find() but hb is throwing exception as above. hope someone will care to answer what can be the problem.
well enugh for today.
as am becoming more exprianced blogger.. I am plannig to use my own css and all so that my blog will be more readable. lets see what can be done about it.
thats all for today.
VJ
