parent
ff9eb6d1b2
commit
581061f442
|
@ -29,12 +29,14 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.EnumType;
|
||||
import javax.persistence.Enumerated;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
@Entity
|
||||
@Access(AccessType.FIELD)
|
||||
@Table(name = "SOMEOTHERENTITY")
|
||||
public class SomeOtherEntity {
|
||||
@Id
|
||||
protected int id;
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<class name="Node">
|
||||
|
||||
<id name="id" length="36">
|
||||
<id name="id" length="16">
|
||||
<generator class="uuid2"/>
|
||||
</id>
|
||||
<property name="name"/>
|
||||
|
|
|
@ -0,0 +1,40 @@
|
|||
<?xml version="1.0"?>
|
||||
<!--
|
||||
~ Hibernate, Relational Persistence for Idiomatic Java
|
||||
~
|
||||
~ Copyright (c) 2010, Red Hat Inc. or third-party contributors as
|
||||
~ indicated by the @author tags or express copyright attribution
|
||||
~ statements applied by the authors. All third-party contributions are
|
||||
~ distributed under license by Red Hat Inc.
|
||||
~
|
||||
~ This copyrighted material is made available to anyone wishing to use, modify,
|
||||
~ copy, or redistribute it subject to the terms and conditions of the GNU
|
||||
~ Lesser General Public License, as published by the Free Software Foundation.
|
||||
~
|
||||
~ This program is distributed in the hope that it will be useful,
|
||||
~ but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
~ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
|
||||
~ for more details.
|
||||
~
|
||||
~ You should have received a copy of the GNU Lesser General Public License
|
||||
~ along with this distribution; if not, write to:
|
||||
~ Free Software Foundation, Inc.
|
||||
~ 51 Franklin Street, Fifth Floor
|
||||
~ Boston, MA 02110-1301 USA
|
||||
-->
|
||||
<!DOCTYPE hibernate-mapping PUBLIC
|
||||
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
|
||||
"http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping package="org.hibernate.test.id.uuid.sqlrep">
|
||||
|
||||
<class name="Node">
|
||||
|
||||
<id name="id" length="36">
|
||||
<generator class="uuid2"/>
|
||||
</id>
|
||||
<property name="name"/>
|
||||
<many-to-one name="parent"/>
|
||||
</class>
|
||||
|
||||
</hibernate-mapping>
|
|
@ -41,4 +41,9 @@ public class UUIDCharTest extends UUIDBinaryTest {
|
|||
}
|
||||
);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String[] getMappings() {
|
||||
return new String[] { "id/uuid/sqlrep/Node2.hbm.xml" };
|
||||
}
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
<class name="Node">
|
||||
|
||||
<id name="id">
|
||||
<id name="id" length="16">
|
||||
<generator class="uuid2">
|
||||
<!-- the "standard random" strategy gets tested in the other id.uuid tests -->
|
||||
<param name="uuid_gen_strategy_class">org.hibernate.id.uuid.CustomVersionOneStrategy</param>
|
||||
|
|
|
@ -0,0 +1,2 @@
|
|||
#see https://issues.jboss.org/browse/JBPAPP-2613
|
||||
db2.jcc.override.progressiveStreaming=2
|
Loading…
Reference in New Issue