-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 
Author Message
 Post subject: Multi Column Index mapping enhancement
PostPosted: Thu Jun 30, 2005 9:32 pm 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
Hibernate version: 3.0.4

I need to be able to create indexes on multiple columns in a manner
that is independent of the property declaration in a mapping document,
in order to dictate the order of the columns in the index.

To that end, since Hibernate did not support this directly, I've made
minor modifications to Hibernate to allow me to do this (I ended up
making a modification in the dtd to allow the new <index> element
within a class and allow me to specify the index name and whether
it is unique, and to HbmBinder.java)

My questions (to the Hibernate team) are:

0. How can I check that I have covered the necessary areas to ensure
that I have not inadvertently broken something I am not aware of?

1. How do I get to submit this change to get a team member to have
a look at it; and finally

2. How do I get to get someone from the team to integrate it to the
code base?

_________________
Cheers,

Bonny

please don't forget to rate :)


Top
 Profile  
 
 Post subject: Multi Column Index
PostPosted: Wed Jul 20, 2005 2:27 am 
Regular
Regular

Joined: Fri Oct 01, 2004 2:19 am
Posts: 111
Location: Melbourne, Australia
Surely someone from the Hibernate team has an opinion?

A scenario I have is: my mapping files use XML includes to include
some base class property information since I use a combination
of table per hierarchy and table per class mappings in addition
to using the <any> construct. Some columns in the included set
of properties may need to be used in indices/constraints,
but not always and not always in the same type of index/constraint,
not to mention that some indices include a particular property in
different ordinal position, but currently this is determined by the order
in which these properties appear in the mapping files.

I'd really appreciate some response that either tells me that this is
already implemented in some manner (which I cannot reveal from the
docs) or that there is a way to incorporate the changes I propose into
a version of Hibernate so I do not have to keep maintaining my patched
version into the future (and which I think is a useful addition).

_________________
Cheers,

Bonny

please don't forget to rate :)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 09, 2005 2:07 pm 
Newbie

Joined: Thu Sep 08, 2005 7:12 pm
Posts: 1
I am also interested in this work. From what I can tell from the online PDF and the Hibernate in Action book, functionality in this area is somewhat lacking. If there appears to be a straightforward solution to this problem, I'd love to use it.

_________________
--
Jimmy Wan
Senior Software Engineer, 21st Century Technologies
www.21technologies.com


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 4:57 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
There is a patch in JIRA about that feature

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.