Hi,

I am facing an issue to create index for a column which is part of a composite id. Let me explain it in detail, Table has three columns(X,Y,Z) in that first two columns are composite primary keys (X and Y columns). For this I wrote a class B for composite IDs. Class B will contain columns X & Y. I worte another class A which will contain class B and Z.


In Class A POJO I menetioned @hibernate.id generator-class="assigned" for composite PK getter method. I successfully added index for Z column like

    * @hibernate.property
    * @hibernate.column name="z" type="java.lang.Long" index="IDX_Z"

I tried in similar way for column Y, but it did not work.

Can anybody suggest how to write xdoclet for indexing on a single column of composite id.



Thanks
SaiPrasad.

_________________________________________________________________
Welcome Goddess Durga. Join the Navratri celebrations online. Be a part of the festivities http://server1.msn.co.in/SP05/Navratri/index.asp



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.
Get Certified Today * Register for a JBoss Training Course
Free Certification Exam for All Training Attendees Through End of 2005
Visit http://www.jboss.com/services/certification for more information
_______________________________________________
xdoclet-user mailing list
xdoclet-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to