Does "persist" mean *commit* ??

Discussion in 'Java' started by Sébastien de Mapias, Jul 31, 2008.

  1. 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
     
    Sébastien de Mapias, Jul 31, 2008
    #1
    1. Advertising

  2. On 31 juil, 08:09, Sébastien de Mapias <> 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
     
    Jean-Baptiste Nizet, Jul 31, 2008
    #2
    1. Advertising

  3. Sébastien de Mapias

    Roedy Green Guest

    On Wed, 30 Jul 2008 23:09:36 -0700 (PDT), Sébastien de Mapias
    <> 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
     
    Roedy Green, Jul 31, 2008
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?RWFybCBUZWlncm9i?=

    Does session cookie persist when after session times out?

    =?Utf-8?B?RWFybCBUZWlncm9i?=, Jul 28, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    628
    Mike Newton
    Jul 28, 2004
  2. Sébastien de Mapias

    What does "persist" really mean ?

    Sébastien de Mapias, Jul 30, 2008, in forum: Java
    Replies:
    11
    Views:
    2,582
    Arne Vajhøj
    Aug 2, 2008
  3. Li Ma
    Replies:
    1
    Views:
    2,368
    Roedy Green
    Mar 9, 2009
  4. Rahul
    Replies:
    4
    Views:
    627
    Robert Kern
    Apr 7, 2009
  5. C Barrington-Leigh
    Replies:
    1
    Views:
    1,288
    Tim Leslie
    Sep 10, 2010
Loading...

Share This Page