-->
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: Giving names to UniqueConstraint-s
PostPosted: Mon Oct 20, 2008 8:47 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Is there any way to specify the name of a @UniqueConstraint using annotations?

If not, may I implement it? Would it be possible to change the
javax.persistence.UniqueConstraint or should I add a org.hibernate.annotations variant?

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2008 8:48 am 
Hibernate Team
Hibernate Team

Joined: Thu Apr 05, 2007 5:52 am
Posts: 1689
Location: Sweden
Hi Sanne,

this is a known issue - http://opensource.atlassian.com/projects/hibernate/browse/ANN-470.

You won't be able to change the javax.persistence version since it is the standard. Not sure if I like the idea of introducing a Hibernate specific annotation just for this purpose. Maybe it is worth checking JPA 2. One would hope they have fixed this problem there. Of course you would have to wait then until we implemented JPA 2 ;-)

--Hardy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 21, 2008 9:55 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
thanks Hardy,
thanks for the reference.
I agree adding a new annotation only for this is messy, I'll avoid a new annotation.

_________________
Sanne
http://in.relation.to/


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.