-->
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.  [ 3 posts ] 
Author Message
 Post subject: Way to specify table column index using EJB 3 annotations?
PostPosted: Fri Jan 21, 2005 1:24 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
Hibernate version: hibernate-3.0beta1 with hibernate-annotations-3.0alpha1

Does anyone know if there is a way to annotate a property so that when you use SchemaExport to create the database schema in the database server that it creates indexes for specified columns?

For example, I have a Person object which has firstName, middleName, and lastName properties. I want to create indexes in the database for the table columns corresponding to these properties. I can easily do this manually, but, it would be nice to have SchemaExport do it for me.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Jan 21, 2005 1:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Please add this to JIRA as a new feature (In the hibernateext project)
You can also post your request to ejb3-feedback@sun.com

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 07, 2005 5:01 pm 
Pro
Pro

Joined: Fri Nov 19, 2004 5:52 pm
Posts: 232
Location: Chicago, IL
I posted a question regarding this to the ejb-feedback list and received the following response...

Jon,

Thanks for your feedback.

While there is some amount of db schema information included in the metadata the spec does not include any specific support for schema generation. While many O/R products support this kind of development it is not really within the purview of the EJB3 container but as you mentioned is really more appropriate for tools.

Your question indicates that we are not doing a very good job explaining what our goals are for supporting O/R mapping metadata and we will try to clarify this.

Thanks,
-Mike

> -----Original Message-----
> From: jemiller
> Sent: Wednesday, March 02, 2005 3:50 PM
> To: ejb3-edr2-feedback@sun.com
> Subject: Annotation for specifying index on column?
>
>
> As far as I can tell, there isn't a way to specify that a
> column on a table
> should have an index. I'm wondering if there are plans to add a way of
> specifying this? This would be useful for tools that read the
> information
> and create database schemas.
>
> Jon


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 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.