org.hibernate.test.annotations.type
Class MyOidGenerator

java.lang.Object
  extended by org.hibernate.test.annotations.type.MyOidGenerator
All Implemented Interfaces:
IdentifierGenerator

public class MyOidGenerator
extends Object
implements IdentifierGenerator


Field Summary
 
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
 
Constructor Summary
MyOidGenerator()
           
 
Method Summary
 Serializable generate(SessionImplementor aSessionImplementor, Object aObject)
          Generate a new identifier.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyOidGenerator

public MyOidGenerator()
Method Detail

generate

public Serializable generate(SessionImplementor aSessionImplementor,
                             Object aObject)
                      throws HibernateException
Description copied from interface: IdentifierGenerator
Generate a new identifier.

Specified by:
generate in interface IdentifierGenerator
aObject - the entity or toplevel collection for which the id is being generated
Returns:
a new identifier
Throws:
HibernateException


Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.