Package ome.tools.hibernate
Class MySeqGenerator
- java.lang.Object
-
- org.hibernate.id.SequenceGenerator
-
- ome.tools.hibernate.MySeqGenerator
-
- All Implemented Interfaces:
org.hibernate.id.Configurable,org.hibernate.id.IdentifierGenerator,org.hibernate.id.PersistentIdentifierGenerator
public class MySeqGenerator extends org.hibernate.id.SequenceGenerator
http://www.hibernate.org/296.html
-
-
Field Summary
-
Fields inherited from class org.hibernate.id.SequenceGenerator
PARAMETERS, SEQUENCE
-
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
-
Fields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, IDENTIFIER_NORMALIZER, PK, SCHEMA, SQL_STATEMENT_LOGGER, TABLE, TABLES
-
-
Constructor Summary
Constructors Constructor Description MySeqGenerator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfigure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect dialect)If the parameters do not contain aSequenceGenerator.SEQUENCEname, we assign one based on the table name.-
Methods inherited from class org.hibernate.id.SequenceGenerator
buildHolder, generate, generateHolder, generatorKey, getIdentifierType, getSequenceName, sqlCreateStrings, sqlDropStrings
-
-
-
-
Method Detail
-
configure
public void configure(org.hibernate.type.Type type, java.util.Properties params, org.hibernate.dialect.Dialect dialect) throws org.hibernate.MappingException
If the parameters do not contain aSequenceGenerator.SEQUENCEname, we assign one based on the table name.- Specified by:
configurein interfaceorg.hibernate.id.Configurable- Overrides:
configurein classorg.hibernate.id.SequenceGenerator- Throws:
org.hibernate.MappingException
-
-