• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Help needed regarding the generating POJO from a XSD

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Team,

I need help regarding the XSD and generating POJOs from the given XSD. From a given XSD, using JAXB, we are able to generate POJOs. But, the generated POJO is not completely JPA compliant. i.e. I need to provide the value for the annotation @table by reading a column value from an excel sheet. Consider an excel sheet with some set of columns and one of the column is "DBSource" and the values for that column will be like "TABLE_NAME.columnname". I want to pass the value"TABLE_NAME" to the annotation @table and the "columnname" to the annotation @column.

I found about hyperjaxb which can be used to generate POJOs of JPA compliant from XSDs. Kindly let me know how to achieve this.

Thanks,
Keerthi Kumar N
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic