-->
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: I don't know how to mapping an index in a subclass
PostPosted: Wed Dec 12, 2007 2:42 pm 
Newbie

Joined: Wed Dec 12, 2007 10:00 am
Posts: 1
Hi, I have the follow problem:

I have an abstract class call PersistentObject that has a instance variable call creationTimestamp and it has a method call getCreationTimestamp(). This method has two annotations: @Temporal(TemporalType.TIMESTAMP)
@Column(name = "CREATION_TIMESTAMP")

Then I have a subclass call Case and in this class I want to put an index for the creationTimestamp. I wouldn't like putting the index in the superclass because I need the index in the Case class.


I hope that you can help me.


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.