Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

custom class name in middlegen?

 
Sundar Murthi
Ranch Hand
Posts: 209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guis

I am generating POJO objects from the Schema using middlegen. But i want to customize my generated POJO.

eg:
if my table name is CGA_CLASSIFICATION. The generated class name in cga_classification.
What i need is the class name is just classification insted of cga_classification.

How can i do???
 
Surya Suravarapu
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add "singular" attribute to your 'table' element under middlegen task. For your case you can add something like the following:



- SPS
 
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!