Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Is it good to write the jdbc code in java beans  RSS feed

 
vinaykrothapalli kumar
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
friends i have a small questions that is
shall i write jdbc code directly in "java beans" is it a good practice or bad practice please let me know


-------------------
vinay
 
Daniel Rhoades
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Its better to stick JDBC code in a Factory or something simliar which creates JavaBeans, then all the JavaBean class contains is instance variables and getter and setters.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!