http://www.infoq.com/articles/hibernate-custom-fieldskindly go through this topic of setting up the custom fields in hibernate.I actually got stuck with the same error as Arif Mohd is happing in the comment list.If you dont like to go through the site here is my bunch of Q:
1.i am getting this error
java.net.ConnectException: Connection refused: connect
but the connection is happening,this is because every time the the main class is executed new row is added up.So how come it is giving this exeption?
2. to elaborate my first point actually the code wll stop and restart the session and insert a new column to the existing table dynamically using a "custom class" at runtime.
pls help me out!
thanks