-->
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: Create named Primary Key indexes
PostPosted: Tue Sep 28, 2010 3:08 pm 
Newbie

Joined: Tue Sep 28, 2010 2:52 pm
Posts: 1
I want to name my pk indexes. I can ad the @Index(name="pkidx") to a field with @Id annotation but then I get two indexes the PK index that is created during table creation and another during the index creation. I want my ddl to look like this...

Code:
    create table table1 (
        column1 number(19,0) not null,
        column2 varchar2(255),
        primary key (column1) using index (create index table1_pkidx on table1(column1) )
    );


thanks in advance...

- Joe


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.