• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to Creating the JavaBeans using MySql  RSS feed

 
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
Marshal
Posts: 36656
475
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.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!