-->
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: Default value of a column
PostPosted: Mon Apr 23, 2007 7:45 pm 
Senior
Senior

Joined: Sat Aug 19, 2006 6:31 pm
Posts: 139
Hi,

I'm using the hbm2java ant task to generate POJOs from a postgres database. I'm using hibernate-tools 3.2.0-beta9.

It seems like the default values for a column if they were specified in the database aren't being reflected in the POJOs.

I'm wondering is there a way to get the default values reflected in the POJOs?

Thanks in advance.

Budyanto


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 24, 2007 1:44 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
It has been discussed a couple of times and noone has yet to convince that it makes sense. It needs a lot of conversion rules to be correct.

_________________
Max
Don't forget to rate


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.