Author: stliu
Date: 2010-01-09 08:31:26 -0500 (Sat, 09 Jan 2010)
New Revision: 18472
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/identifiercollection/Passport.java
Log:
JBPAPP-3375 HHH-4773 unit tests fail cos db2 doesn't allow primary key column
nullable
Modified:
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/identifiercollection/Passport.java
===================================================================
---
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/identifiercollection/Passport.java 2010-01-09
13:28:32 UTC (rev 18471)
+++
annotations/branches/v3_4_0_GA_CP/src/test/java/org/hibernate/test/annotations/identifiercollection/Passport.java 2010-01-09
13:31:26 UTC (rev 18472)
@@ -26,13 +26,13 @@
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name="PASSPORT_STAMP")
- @CollectionId(columns = @Column(name="COLLECTION_ID"),
type=@Type(type="long"), generator = "generator")
+ @CollectionId(columns = @Column(name="COLLECTION_ID",nullable=false),
type=@Type(type="long"), generator = "generator")
@TableGenerator(name="generator", table="IDSTAMP")
private Collection<Stamp> stamps = new ArrayList();
@ManyToMany(cascade = CascadeType.ALL)
@JoinTable(name="PASSPORT_VISASTAMP")
- @CollectionId(columns = @Column(name="COLLECTION_ID"),
type=@Type(type="long"), generator = "ids_generator")
+ @CollectionId(columns = @Column(name="COLLECTION_ID",nullable=false),
type=@Type(type="long"), generator = "ids_generator")
//TODO test identity generator
private Collection<Stamp> visaStamp = new ArrayList();
Show replies by date