lumis.portal.dao.hibernate
Class GuidGenerator
java.lang.Object
lumis.portal.dao.hibernate.GuidGenerator
- All Implemented Interfaces:
- org.hibernate.id.IdentifierGenerator
public class GuidGenerator
- extends Object
- implements org.hibernate.id.IdentifierGenerator
Identifier generator for hibernate that uses
PortalUtil.generateNewGuid()
to generate the identifier.
- Since:
- 4.0.4
Fields inherited from interface org.hibernate.id.IdentifierGenerator |
ENTITY_NAME |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GuidGenerator
public GuidGenerator()
generate
public Serializable generate(org.hibernate.engine.SessionImplementor session,
Object object)
throws org.hibernate.HibernateException
- Calls
PortalUtil.generateNewGuid()
to generate the identifier.
- Specified by:
generate
in interface org.hibernate.id.IdentifierGenerator
- Parameters:
session
- object
- the entity or toplevel collection for which the id is being generated
- Returns:
- the identifier generated.
- Throws:
org.hibernate.HibernateException
- Since:
- 4.0.4
Lumisportal 5.5.0.091130 - Copyright © 2001-2007, Lumis. All Rights Reserved.