~raginggoblin/infolog/infolog

« back to all changes in this revision

Viewing changes to InfologServer/lib/hibernate-distribution-3.3.2.GA/project/testsuite/src/test/java/org/hibernate/test/idgen/enhanced/forcedtable/Pooled.hbm.xml

  • Committer: Raging Goblin
  • Date: 2013-11-16 16:51:32 UTC
  • Revision ID: raging_goblin-20131116165132-weujnptzc88uy4ah
Mavenized the project, now using shared project InfologSync

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0"?>
2
 
<!DOCTYPE hibernate-mapping PUBLIC
3
 
        "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
4
 
        "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
5
 
 
6
 
<!--
7
 
    Demonstrates use of the enhanced table-based identifier
8
 
    generator, using a hilo algorithm as the optimization (to
9
 
    avoid hitting the database to generate each value).
10
 
-->
11
 
 
12
 
<hibernate-mapping package="org.hibernate.test.idgen.enhanced.forcedtable">
13
 
 
14
 
    <class name="Entity" table="ID_SEQ_TBL_POOL_ENTITY">
15
 
        <id name="id" column="ID" type="long">
16
 
            <generator class="org.hibernate.id.enhanced.SequenceStyleGenerator">
17
 
                <param name="table_name">ID_SEQ_TBL_POOL_SEQ</param>
18
 
                <param name="initial_value">1</param>
19
 
                <param name="increment_size">10</param>
20
 
                <param name="optimizer">pooled</param>
21
 
                <param name="force_tbl_use">true</param>
22
 
            </generator>
23
 
        </id>
24
 
        <property name="name" type="string"/>
25
 
        </class>
26
 
 
27
 
</hibernate-mapping>