org.hibernate.test.cid
Class PurchaseRecordIdGenerator
java.lang.Object
org.hibernate.id.AbstractPostInsertGenerator
org.hibernate.id.IdentityGenerator
org.hibernate.test.cid.PurchaseRecordIdGenerator
- All Implemented Interfaces:
- BulkInsertionCapableIdentifierGenerator, IdentifierGenerator, PostInsertIdentifierGenerator
public class PurchaseRecordIdGenerator
- extends IdentityGenerator
Simple IdentityGenerator
implementation for testing composite-id.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PurchaseRecordIdGenerator
public PurchaseRecordIdGenerator()
generate
public Serializable generate(SessionImplementor s,
Object obj)
- Description copied from interface:
IdentifierGenerator
- Generate a new identifier.
- Specified by:
generate
in interface IdentifierGenerator
- Overrides:
generate
in class AbstractPostInsertGenerator
obj
- the entity or toplevel collection for which the id is being generated
- Returns:
- a new identifier
Copyright © 2001-2012 Red Hat, Inc. All Rights Reserved.