Just do not use type attribute at all, Hibernate is smart enough to infer necessary types from classes and use appropriate DB types. Provided that actual class uses java.lang.Integer and java.util.Date as property types <id name="id" column="id" unsaved-value="null"> <generator class="native"/> </id> <property name="userId" column="user_id" /> <property name="insertDate" column="insert_date"/> And DB schema should use 'date' for insert_date and int for id
david b <[EMAIL PROTECTED]> wrote: Konstantin Can I replace within the Login.hbm.xml integer instead of in? What about my special date class? Can these have DateIII instead of date? That is a class I made and put into my commons package. David -- ___________________________________________________ Play 100s of games for FREE! http://games.mail.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]