-->
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.  [ 1 post ] 
Author Message
 Post subject: @Index annotation does not create index on Postgres
PostPosted: Sat Jun 05, 2010 1:47 am 
Regular
Regular

Joined: Fri Mar 26, 2004 11:45 am
Posts: 75
Hello,

I am using Hibernate 3.3.2 and PostgreSQL 8.3.

I am trying to use JPA and Hibernate annotations to create an index on a "recipient" column of "email_offer_log" table. I tried adding an @Index annotation on the column as well as @org.hibernate.annotations.Table(appliesTo = "email_offer_log", indexes = {@Index(name = "idx_recipient", columnNames = "recipient")}) on the class, but neither seems to create an index.

Each time I start with a clean database and the "email_offer_log" table get created correctly, but I can't get the index to get created.

Any ideas on what I am doing wrong?

Thanks


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

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.