Setting unsaved-value...

"Fernand Galiana" <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user,gmane.spam.detected
Message-ID <014401c49a6c$3c139bc0$c200a8c0@amelie>
Hi,

    I am trying to get Hibernate to generated the unsaved-value="X" on the primary key. 
    Looking at the velocity template it appears that $table.generatorUnsavedValue needs to 
    be set for this to happen. I've tried setting the unsaved value in the prefs.properties file
    but middlegen is not picking it up

    So what is the best way to set unsaved-value so that it is generated in the hbm.xml file ?

Thanks,

Fernand
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.