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.