ome.tools.hibernate
Class MySeqGenerator

java.lang.Object
  extended by org.hibernate.id.SequenceGenerator
      extended by 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

Author:
josh

Field Summary
 
Fields inherited from class org.hibernate.id.SequenceGenerator
PARAMETERS, SEQUENCE
 
Fields inherited from interface org.hibernate.id.PersistentIdentifierGenerator
CATALOG, PK, SCHEMA, SQL, TABLE, TABLES
 
Fields inherited from interface org.hibernate.id.IdentifierGenerator
ENTITY_NAME
 
Constructor Summary
MySeqGenerator()
           
 
Method Summary
 void configure(org.hibernate.type.Type type, Properties params, org.hibernate.dialect.Dialect dialect)
          If the parameters do not contain a SequenceGenerator.SEQUENCE name, we assign one based on the table name.
 
Methods inherited from class org.hibernate.id.SequenceGenerator
generate, generatorKey, getSequenceName, sqlCreateStrings, sqlDropStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MySeqGenerator

public MySeqGenerator()
Method Detail

configure

public void configure(org.hibernate.type.Type type,
                      Properties params,
                      org.hibernate.dialect.Dialect dialect)
               throws org.hibernate.MappingException
If the parameters do not contain a SequenceGenerator.SEQUENCE name, we assign one based on the table name.

Specified by:
configure in interface org.hibernate.id.Configurable
Overrides:
configure in class org.hibernate.id.SequenceGenerator
Throws:
org.hibernate.MappingException


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.