Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Middlegen -Hibernate - use sequences for primary key

 
Sagar Bilgi
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic