[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.tools.emf] Re: Teneo/Hibernate - key conflicts

Hi JD,
My impression was that indexes are automatically added by Hibernate for foreign keys. You can check the hibernate log to see what db schema create statements are fired.


There is also the @Index(name="commaseparatedindexnames") which you can set on an EReference. However, this annotation is not yet tested in the Teneo testset (not good). I will add one for the next build.

The next build (today or tomorrow) of Teneo will also make it possible to specify the index in the Column and JoinColumn annotations.

gr. Martin

JD wrote:
Well it's not so much about keys in the model itself or in XML for that matter. It's about getting indexes into the generated hibernate mapping and thus into the database, to speed things up. Is there maybe a teneo.jpa annotation which does the same thing, that I can use instead of the keys?

Martin Taal wrote:

Hi Josef,
I am not that familiar with the keys attribute in an EReference but maybe
there are other ways to achieve what you want
instead of using the keys. If it is to get an id as the reference in the xml
then there are also other ways afaik.

Or you can maybe override the validation to prevent this specific validation
from triggering. Ed would know this.

gr. Martin




--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Cell: +31 (0)6 288 48 943
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@xxxxxxxxxxxxxx - mtaal@xxxxxxxxx
Web: www.springsite.com - www.elver.org