I'm using X-doclet to generate my mappings files, and hbm2ddl to generate the database. For simple composite objects, everything works great.
But the user-defined types aren't working like I expected. To use a simplified example, I have an AuditInfo that contains a timestamp and Long, and it works when I manually creat the mapping file.
Blah.java
@hibernate.property type="com.example.hibernate.AuditInfoType"
AuditInfo.java
@hibernate.subclass @hibernate.timestamp column="created" @hibernate.property column="created_by" type="long"
AuditInfoType.java
(I tried copying tags from AuditInfo.java, but no change)
Blah.hbm.xml
<property name="auditInfo" type="com.energywindow.hibernate.AuditInfoType: column="auditInfo" />
generated DDL
create tables states (... auditInfo TIMESTAMP,...)
I could probably handle by hard coding the user-defined type information in the merge dir, but I would rather have it automatically generated by Xdoclet for obvious reasons.... Has anyone else seen this, or better yet solved it?
Bear
------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ hibernate-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/hibernate-devel