-->
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: NHibernate SaveorUpdate Method
PostPosted: Sat Jan 30, 2010 1:04 am 
Newbie

Joined: Thu Aug 27, 2009 6:28 am
Posts: 19
Hi Friends,

When I save entity into database, If In my entity has some null value for a Property in the Entity whereas db has notnullable field, i will get error. here i need to predict before save in to db and i need show some messages to user to make the field has value instead of null. How can i achieve this ? is there any method to check this ?

Thanks,
Nizam

_________________
Thanks & Regards
Nizam Abdul


Top
 Profile  
 
 Post subject: Re: NHibernate SaveorUpdate Method
PostPosted: Mon Feb 01, 2010 3:35 am 
Beginner
Beginner

Joined: Fri Feb 27, 2009 6:07 am
Posts: 38
Location: Moscow,Russia
Implement NHibernate.Classic.IValidatable interface.


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.