-->
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: Set boolean default value with postgres and oracle
PostPosted: Tue Dec 14, 2010 6:32 am 
Newbie

Joined: Tue Dec 14, 2010 6:17 am
Posts: 1
hi, i have a problem whith columnDefinition, i use it in field boolean, in my application using oracle database, and set so
Code:
@Column(name = "FLAG", columnDefinition = "BOOLEAN default false")
private boolean flag;

but in database che field can't set default value, i use also in configuration file
<prop key="hibernate.query.substitutions">true 1, false 0</prop> but does not work the same, instead if i use postresql database the field set correctly default value false.
How do i for work my application in oracle and also postgresql?
Many thanks to all


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.