• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Creating the JavaBeans using MySql

 
vamshi krishnan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody
please tell me how to create the beans and usage of beans
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36005
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vamshi,
A JavaBean is just an object with getters and setters. MySql is a database and knows nothing about Java. You join the two using JDBC (or an object relational technology.) With JDBC, you loop through the result set, create your beans and call their setters.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!