-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to specify clustered index annotation?
PostPosted: Tue Oct 12, 2010 3:44 am 
Newbie

Joined: Tue Oct 12, 2010 3:37 am
Posts: 2
Hello!

I have a problem in specifying hibernate annotation for clustered index.
First I'd like to create an annotated class similar to that:

Code:
@Entity
@MappedSuperclass
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class SeriesMonitoringPointsTable {
    @Id
    @Column(name = ID, nullable = false)
    private Long id;

    public void setId( Long id ) {
        this.id = id;
    }
}


In this class I would like to create an Id column as clustered index. Is such thing possible with annotations or hibernate at all?

Thank you for the answer.


Top
 Profile  
 
 Post subject: Re: How to specify clustered index annotation?
PostPosted: Wed Oct 13, 2010 7:46 am 
Newbie

Joined: Tue Oct 12, 2010 3:37 am
Posts: 2
Unfortunately, there is no such possibility, see http://stackoverflow.com/questions/3908699/hibernate-how-to-specify-clustered-index-annotation


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