Re: Incompatible ID types when using sequence generator
Endre Meckelborg Rognerud <[email protected]> Fri, 01 Apr 2005 08:21:56 +0200
| Newsgroups | gmane.comp.java.ejb.middlegen.user |
|---|---|
| Message-ID | <[email protected]> |
Wouter Boers (31.03.2005 23:07): > The sollution is quite easy. > > Set the property middlegen.hibernate.gui = true (I'm sure this is the > correct one, doing this from the top of my head) > > This wil allow the gui to run when you invoke middlegen via maven. > The gui allows you to specify the types of the collumn. My advise > with middlegen and oracle is to always do this, since the default > mapping is always almost not what you want. Always use Integer over > int because and Interger is allowed to be 'null' and an int is always > initialized by Java to '0'. > > Once you have set all your column types you can disable the gui since > the settings are saved in the preferences file created by middlegen. Thanks! That was my thoughts. I will do this, using Integers. I asked because I thought Middlegen would use a type mapper with working defaults :) -- Med vennlig hilsen Endre Rognerud (Webgruppa, SAUS, USIT, UIO) GPG Public Key: http://folk.uio.no/endremr/emr_gpg_pubkey.txt ------------------------------------------------------- This SF.net email is sponsored by Demarc: A global provider of Threat Management Solutions. Download our HomeAdmin security software for free today! http://www.demarc.com/info/Sentarus/hamr30