Middlegen -Hibernate - use sequences for primary key
posted 12 years ago
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
posted 11 years ago
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.