Hi, I have a question about uniqueness of objects. Does it possible to tell 
Hibernate to make unique index on two columns automatically? 

This xdoclet tag with :
    /** 
     * @hibernate.property
     *  column="COL_NAME"
     *  unique="true"
     */
 will create unique index in my database on table's column when I'm using
net.sf.hibernate.tool.hbm2ddl.SchemaExport class.

Can I tell Hibernate to make unique index on combination of two object's 
fields? I can do this manually if I create unique index in some db tool for 
appropriate table but I want to know does Hibernate somehow can do this for 
me when using SchemaExport or SchemaUpdate classes?
 
-- 
Best regards,
Mickey          [EMAIL PROTECTED], [EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
hibernate-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/hibernate-devel

Reply via email to