Hibernate Books

All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: Hibernate maps DECIMAL(15,5)NOT NULL WITH DEFAULT to null
PostPosted: Mon May 21, 2012 10:37 am 
Newbie

Joined: Mon May 21, 2012 10:23 am
Posts: 2
Hi,

I am using Hibernate 3.6.10 and trying to map to a table in DB2 zOS v9. I am able to map all the columns except for the 2 columns. The columns map to null inspite of having data in them.

This is the column definition of these 2 columns - DECIMAL(15,5)NOT NULL WITH DEFAULT

Tried using DB2Dialect and DB2390Dialect, without luck.

This only happens for these 2 columns, other DECIMAL columns map correctly.

Any help would be highly appreciated.

Thanks


Top
 Profile  
 
 Post subject: Re: Hibernate maps DECIMAL(15,5)NOT NULL WITH DEFAULT to null
PostPosted: Tue May 22, 2012 1:45 am 
Newbie

Joined: Mon May 21, 2012 10:23 am
Posts: 2
Hi,

Any reponses to my query.

Just to add, DECIMAL(18,7) column with the 'NOT NULL WITH DEFAULT' constraint maps correctly.

Any ideas.

Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 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.