Class EntityIdGenerator
- java.lang.Object
-
- hu.icellmobilsoft.coffee.model.base.generator.EntityIdGenerator
-
- All Implemented Interfaces:
Serializable,org.hibernate.boot.model.relational.ExportableProducer,org.hibernate.generator.BeforeExecutionGenerator,org.hibernate.generator.Generator,org.hibernate.id.Configurable,org.hibernate.id.IdentifierGenerator
public class EntityIdGenerator extends Object implements org.hibernate.id.IdentifierGenerator
Entity identifier generator.- Since:
- 1.0.0
- Author:
- imre.scheffer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description EntityIdGenerator()Default constructor, constructs a new object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Serializablegenerate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object)static StringgenerateId()generate fix 16 length id!-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.hibernate.generator.BeforeExecutionGenerator
generatedOnExecution
-
-
-
-
Method Detail
-
generate
public Serializable generate(org.hibernate.engine.spi.SharedSessionContractImplementor session, Object object) throws org.hibernate.HibernateException
- Specified by:
generatein interfaceorg.hibernate.id.IdentifierGenerator- Throws:
org.hibernate.HibernateException
-
generateId
public static String generateId()
generate fix 16 length id!- Returns:
- entityId
-
-