• 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

Middlegen -Hibernate - use sequences for primary key

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
Should be a simple question for all you middlegen-hibernate veterans out there..

I am using the middlegen-hibernate plug in to read an existing schema
and generate the appropriate hbm.xml files. I can specifiy which tables I
want the mapping files for ( by using the <table> element) but in cases where I want the primary key of the table to be generated using a sequence, I cant seem to find the syntax or the construct to specify that in the middlegen ant task.

Any pointers on this?

Thanks in advance
 
Sagar Bilgi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Was browsing through this forum and saw my unanswered question and figured I'd post what I did if it might help anyone else.

Since no one replied I figured the easiest way would be to use the middlegen UI and enter the sequence names for the tables I wanted.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic