From ba4c92747e60109eb37aeb97a4a9901506c4bab9 Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Wed, 15 Apr 2009 18:40:43 +0000 Subject: [PATCH] ANN-821 - org.hibernate.test.annotations.manytomany.ManyToManyTest fails on sybase due to index too large git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16344 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- .../java/org/hibernate/test/annotations/manytomany/CatPk.java | 3 +++ .../java/org/hibernate/test/annotations/manytomany/ManPk.java | 3 +++ .../org/hibernate/test/annotations/manytomany/WomanPk.java | 3 +++ 3 files changed, 9 insertions(+) diff --git a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/CatPk.java b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/CatPk.java index c308d0e3af..6f678e2a2a 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/CatPk.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/CatPk.java @@ -2,6 +2,7 @@ package org.hibernate.test.annotations.manytomany; import java.io.Serializable; +import javax.persistence.Column; /** * @author Emmanuel Bernard @@ -10,6 +11,7 @@ public class CatPk implements Serializable { private String name; private String thoroughbred; + @Column(length=128) public String getThoroughbred() { return thoroughbred; } @@ -18,6 +20,7 @@ public class CatPk implements Serializable { this.thoroughbred = thoroughbred; } + @Column(length=128) public String getName() { return name; } diff --git a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManPk.java b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManPk.java index e3f2ff1006..4b8bceeece 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManPk.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/ManPk.java @@ -3,6 +3,7 @@ package org.hibernate.test.annotations.manytomany; import java.io.Serializable; import javax.persistence.Embeddable; +import javax.persistence.Column; /** * @author Emmanuel Bernard @@ -47,10 +48,12 @@ public class ManPk implements Serializable { this.lastName = lastName; } + @Column(length=128) public String getFirstName() { return firstName; } + @Column(length=128) public String getLastName() { return lastName; } diff --git a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/WomanPk.java b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/WomanPk.java index a5f68c4afd..0d6d48c797 100644 --- a/annotations/src/test/java/org/hibernate/test/annotations/manytomany/WomanPk.java +++ b/annotations/src/test/java/org/hibernate/test/annotations/manytomany/WomanPk.java @@ -3,6 +3,7 @@ package org.hibernate.test.annotations.manytomany; import java.io.Serializable; import javax.persistence.Embeddable; +import javax.persistence.Column; /** * @author Emmanuel Bernard @@ -39,10 +40,12 @@ public class WomanPk implements Serializable { this.lastName = lastName; } + @Column(length=128) public String getFirstName() { return firstName; } + @Column(length=128) public String getLastName() { return lastName; }