Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Does "persist" mean *commit* ??

Reply
Thread Tools

Does "persist" mean *commit* ??

 
 
Sébastien de Mapias
Guest
Posts: n/a
 
      07-31-2008
Hi,
Sorry to get back with my question... But nothing's
clear in these answers I got. The 1rst line of R. Green's
page states that "writing Java objects to disk in a way that
they can be read back in again later".

If HibernateTemplate's 'save' means "persist", i.e. write objects
to disk, then 'save' means 'commit' am I right ?

Thanks.
SR
 
Reply With Quote
 
 
 
 
Jean-Baptiste Nizet
Guest
Posts: n/a
 
      07-31-2008
On 31 juil, 08:09, Sébastien de Mapias <(E-Mail Removed)> wrote:
> Hi,
> Sorry to get back with my question... But nothing's
> clear in these answers I got. The 1rst line of R. Green's
> page states that "writing Java objects to disk in a way that
> they can be read back in again later".
>
> If HibernateTemplate's 'save' means "persist", i.e. write objects
> to disk, then 'save' means 'commit' am I right ?


No, you're not. It seems to me that you're trying to understand the
meaning of a specific term in the javadoc of a specific method of a
specific class: HibernateTemplate.
HibernateTemplate, as its name and doc indicates, is a utility class
provided by the Spring to help with using Hibernate, a complex Object-
Relational Mapper (ORM), in Spring-based applications. Try first to
read about Hibernate, what it is, what it does and how it works,
before trying to use it with HibernateTemplate:
http://www.hibernate.org/hib_docs/reference/en/html/ (or
http://www.hibernate.org/hib_docs/reference/fr/html/ if, as I suspect,
you prefer reading in French). Then you will understand what a Session
is, how it's related to a transaction, what persistent and transient
objects are in this context, what persist means, and when a commit is
performed.

JB.

>
> Thanks.
> SR


 
Reply With Quote
 
 
 
 
Roedy Green
Guest
Posts: n/a
 
      07-31-2008
On Wed, 30 Jul 2008 23:09:36 -0700 (PDT), Sébastien de Mapias
<(E-Mail Removed)> wrote, quoted or indirectly quoted someone who
said :

>If HibernateTemplate's 'save' means "persist", i.e. write objects
>to disk, then 'save' means 'commit' am I right ?


I would never trust a computer prgrammer to use an English verb in a
consistent way. You are lucky when he spells it correctly. Even Sun
has some boners. You have read the docs, experiment or study the
source code to find out what any particular method does.
--

Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
weighted mean; weighted standard error of the mean (sem) C Barrington-Leigh Python 1 09-10-2010 02:03 AM
What does <AF> mean and how do I know if my WebApp does GC too oftenor not Li Ma Java 1 03-09-2009 10:51 PM
What does "driver does not support your hardware" mean? John Ritchie Computer Information 2 08-04-2007 04:59 AM
Re: What does this error mean? Does somebody intrude then force me to restart my PC? johns Computer Security 2 02-06-2004 08:16 AM
What does this error mean? Does somebody intrude then force me to restart my PC? Kelvin @ SG Computer Security 4 02-06-2004 02:56 AM



Advertisments