I'm using xdoclet-1.2.3 to generate hbm.xml mapping for Hibernate-3.2, the
java code is simple,
import java.io.Serializable;

/**
* @hibernate.class table="demo_user"
* update="false"
* mutable="false"
*/
pakcage demo;

public class User implements Serializable {
   int userId;
   String email;

   public User() {
       super();
   }
   /**
    * @hibernate.id generator-class="assigned" column="user_id"
    * @return
    */
   public int getUserId() {
       return userId;
   }
   /**
    * @hibernte.property column="email"
    * @return String
    */
   public String getEmail() {
       return email;
   }
}

the generated User.hbm.xml is like below, the data fields (email) are
missing. I tried different ways, the only way to get around this is avoid
using "column" property.

<hibernate-mapping>
   <class
       name="demo.User"
       table="demo_user"
       mutable="false">

       <id
           name="userId"
           column="user_id"
           type="int"
       >
           <generator class="assigned">
           </generator>
       </id>
   </class>
</hibernate-mapping>

Any idea? Thanks!
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to