-->
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: null value from database number field in java int does not w
PostPosted: Wed Jun 02, 2004 8:17 am 
Newbie

Joined: Wed Jun 02, 2004 6:14 am
Posts: 6
Hello,

I work with hibernate2. My Problem is to read values from Oracle, witch have the value null.

mapping:
<class name="Item" table="kat_item">
<id name="item_id" type="int">
<column name="ITEM_ID" sql-type="number" not-null="true" />
<generator class="native"/>
</id>
<property name="ddi" type="long">
<column name="DDI" sql-type="NUMBER" />
</property>
<property name="name" type="string">
<column name="NAME" sql-type="VARCHAR(100)" />
</property>
<property name="laenge" type="int">
<column name="L


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 02, 2004 8:25 am 
Regular
Regular

Joined: Wed Apr 21, 2004 10:57 am
Posts: 62
Location: Hasselt, Belgium
typing "int not-null" in the search function could help.

I've found this http://forum.hibernate.org/viewtopic.php?t=927223&highlight=int+notnull

I hope this solves your problem.

Peter


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.