Hi,
I have a class like this:
Long id;
Photo photo;
@Inject
private Session _session;
public void setId(Long id) {
this.id = id;
}
public Class onActivate() {
photo = (Photo) _session.get(Photo.class, id);
return null;
}
public String getCaption() {
return photo.getCaption();
}
public void setCaption(String caption) {
this.photo.setCaption(caption);
}
when I click submit from the form, changes are saved to the database. I used
to do
onSuccess()
{
_session.save(myrecord);
}
is this really needed? I got confused, why the changes are saved without
calling _session.save()?
Thanks,
A.C.
--
View this message in context:
http://www.nabble.com/T5%3A-Tapestry-Hibernate%2C-do-we-have-to-save%28%29--tf4718363.html#a13488286
Sent from the Tapestry - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]