Originally posted by Chetan Parekh: I want to store and retrive Java object in MySQL database.
How can I do that?
Is there any samlpe code?
Hello Chetan, This can be done in multiple ways but i can tell you one approach for the same.You can use JDO i.e. Java Data Objects API and call its methods to store and retrive java objects as it is in any database, be it MYSQL.I have done this using JDO .I used Castor JDO for the same.I hope its fine by you.You can visit site of Castor JDO and see more details there.
Alternatively you can use CMP i.e. Container manager persistence featired offered by EJB.
These days hibernate is another OR mapping tool which you can for object persistence.
Success is not doing extraordinary things but doing ordinary things extraordinarily well.