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
This commit is contained in:
Gail Badner 2009-04-15 18:40:43 +00:00
parent a5168c3d22
commit ba4c92747e
3 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,7 @@
package org.hibernate.test.annotations.manytomany; package org.hibernate.test.annotations.manytomany;
import java.io.Serializable; import java.io.Serializable;
import javax.persistence.Column;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
@ -10,6 +11,7 @@ public class CatPk implements Serializable {
private String name; private String name;
private String thoroughbred; private String thoroughbred;
@Column(length=128)
public String getThoroughbred() { public String getThoroughbred() {
return thoroughbred; return thoroughbred;
} }
@ -18,6 +20,7 @@ public class CatPk implements Serializable {
this.thoroughbred = thoroughbred; this.thoroughbred = thoroughbred;
} }
@Column(length=128)
public String getName() { public String getName() {
return name; return name;
} }

View File

@ -3,6 +3,7 @@ package org.hibernate.test.annotations.manytomany;
import java.io.Serializable; import java.io.Serializable;
import javax.persistence.Embeddable; import javax.persistence.Embeddable;
import javax.persistence.Column;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
@ -47,10 +48,12 @@ public class ManPk implements Serializable {
this.lastName = lastName; this.lastName = lastName;
} }
@Column(length=128)
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
@Column(length=128)
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }

View File

@ -3,6 +3,7 @@ package org.hibernate.test.annotations.manytomany;
import java.io.Serializable; import java.io.Serializable;
import javax.persistence.Embeddable; import javax.persistence.Embeddable;
import javax.persistence.Column;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
@ -39,10 +40,12 @@ public class WomanPk implements Serializable {
this.lastName = lastName; this.lastName = lastName;
} }
@Column(length=128)
public String getFirstName() { public String getFirstName() {
return firstName; return firstName;
} }
@Column(length=128)
public String getLastName() { public String getLastName() {
return lastName; return lastName;
} }