-->
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: Can i create an object with only the required columns -table
PostPosted: Thu Sep 23, 2004 9:46 pm 
Newbie

Joined: Thu Sep 23, 2004 9:33 pm
Posts: 1
Hi,
I'm new to hibernate.I have a table which has more than 100 columns.But I need only the values of 10 columns.I'm thinking of creating a hbm.xml file with 10 columns alone.Is that a good idea?
Thanks,


Top
 Profile  
 
 Post subject:
PostPosted: Fri Sep 24, 2004 2:47 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
yes but be carefull, if one of the 90 other columns have a not null constraint, for example, you won't be able to persist new objetcs...

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


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.