-->
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: Smart Updates.. without reading entire object data...
PostPosted: Fri Dec 10, 2010 1:04 pm 
Regular
Regular

Joined: Sun Apr 13, 2008 3:04 am
Posts: 71
Location: Bangalore
Hi.

I have a class with say 3 variables as below. I would like to read say primary key object associated with say id=3. However, as I understand that this reading is only to update the filed 'vehicleList'. In such case, is it possible to have ASliderDO object with all the 3 fields data to be empty and choice of updating vehicleList with entirely new data.

This approach would bring down DB traffic. This must be very much possible.. not sure how..?


public final class ASliderDO extends PDOPersistent
{
//.... the super class has primary key id...

@OneToOne(cascade = CascadeType.ALL)
private ASliderConfigDO sliderConfig;

@OneToOne(cascade = CascadeType.ALL)
private CommonImgDO commonImg;

@OneToMany(cascade = CascadeType.ALL, fetch = FetchType.EAGER)
private List<VehicleDO> vehicleList;
..

}

Regards,
Raja Nagendra Kumar
C.T.O
www.tejasoft.com

_________________
Raja Nagendra Kumar,
C.T.O
http://www.tejasoft.com
TejaSoft - Specialists in Code Audit, Unit Testing and Merciless Re-factoring - Engineering Crisis Turnaround Experts


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.