• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to use XDoclet to generate classes from database Meta-info?  RSS feed

Subhadip Chatterjee
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Folks,
I have a requirement in my application, to generate DAO source-codes & queries-xml file for basic CRUD operation on each table in DB. More explicitly, if I have a table in DB, called TBL_COMPANY, i want to write a java-code which will read the database-metadata info, and generate a XML file (say, tblCompanyAccess.xml) that contains SQL queries for basic CRUD operation in TBL_COMPANY. Plus, the same code has to generate a DAO source-file, which will have select(), insert(), update(), delete() methods implemented to use the queries from "tblCompanyAccess.xml" & perform the job.
Can I use XDoclet api to achieve this task? If yes, then can anybody atleat guide me how to start with?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!