-->
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: object reload
PostPosted: Mon Oct 11, 2004 3:21 am 
Newbie

Joined: Wed Oct 06, 2004 3:20 am
Posts: 12
Hi!

Just a general question. how do i call an explicit object update? because i threw some new data in my table with an "update" and now if i call something like this:

public class DeleteContactAction extends Action{

private List l = null;

public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest req, HttpServletResponse res) throws Exception{

DynaActionForm df = (DynaActionForm)form;
String[] contact_id = (String[])df.get("delete_contact");

for(int i=0; i < contact_id.length; i++){
l = QueryBuilder.getContactWithContactId(contact_id[i]);
Iterator iter = l.iterator();
Contact contact = (Contact)iter.next();
Deleter.delete(contact);
}

return mapping.findForward("contactDeleted");
}
}

this doesn't function. for me it seems logical, but view from the technical side.. why?

thanks


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 11, 2004 4:10 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
session.refresh(obj)

_________________
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.