Package 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 java.lang.Object implements org.hibernate.id.IdentifierGenerator
Identifier generator for hibernate that usesPortalUtil.generateNewGuid()
to generate the identifier.- Since:
- 4.0.4
- Version:
- $Revision: 20509 $ $Date: 2017-09-11 16:18:14 -0300 (Mon, 11 Sep 2017) $
-
-
Constructor Summary
Constructors Constructor Description GuidGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.io.Serializable
generate(org.hibernate.engine.SessionImplementor session, java.lang.Object object)
CallsPortalUtil.generateNewGuid()
to generate the identifier.
-
-
-
Method Detail
-
generate
public java.io.Serializable generate(org.hibernate.engine.SessionImplementor session, java.lang.Object object) throws org.hibernate.HibernateException
CallsPortalUtil.generateNewGuid()
to generate the identifier.- Specified by:
generate
in interfaceorg.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
-
-