-->
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: SessionImplementor in IdentifierGenerator interface
PostPosted: Wed Aug 02, 2006 7:24 pm 
Beginner
Beginner

Joined: Mon Nov 07, 2005 11:10 pm
Posts: 30
Hibernate version: 3.1.1

The generate() method of the IdentifierGenerator interface has the following signature:

Code:
  public Serializable generate(SessionImplementor session, Object object)
    throws HibernateException;


Is the SessionImplementor that is passed to this method the same Session that is used to insert a new entity / row into the table ? In other words, assuming I don't commit or rollback in my implementation of IdentifierGenerator, is it executing in the same database transaction that will be used for the actual insert into the table ?

Furthermore, is there one instance of IdentifierGenerator created per JVM per entity that uses the same implementation of IdentifierGenerator ?


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.