-->
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.  [ 1 post ] 
Author Message
 Post subject: update pojo
PostPosted: Mon Apr 12, 2010 9:22 am 
Newbie

Joined: Mon Apr 12, 2010 9:14 am
Posts: 1
Hi guys,

I'm writing an application with blazeds-hibernate-spring on server side and flex on client side.

I've my classes separated with pojo and dto.

On my User class pojo, I've some properties suchs email, login, password, ...
On my User class dto, the property password is never send in the pojo -> dto direction, but only in dto -> pojo (so, from client to server).

Now, in this class, I want to implement crud function. Insert is easy but I'm quite stuck with update.
The problem is that when I came back from dto to pojo, my pojo's password is null.

Is there any way to tell my HibernateDaoSupport to ignore some property if the property value is X or Y but include it when the value is not X or Y ? In this case, ignore password if null, save it if not null ?

Thanks for your time,
B


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.