-->
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: [annotations] @column with default value
PostPosted: Wed Feb 14, 2007 9:02 am 
Newbie

Joined: Wed Feb 14, 2007 5:39 am
Posts: 2
hi

i searched for a while (in persistance.annotations and hibernate.annotations extension documentation) how to set a default value for a column with the annotations.

in over words, how to do the same in annotations

Code:
<property name="credits" type="integer" insert="false">
<column name="credits" default="10"/>
</property>



i'am afraid that it is not possible (i've seen nothing in docs)

thanks
lunatix


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 15, 2007 8:11 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
this is not yet possible sorry

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 16, 2007 10:46 am 
Newbie

Joined: Wed Feb 14, 2007 5:39 am
Posts: 2
argl :(

thanks for answering. i am going to use callback interface to force values, or perhaps using a special type.

thank you


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