HHH-7159 Database keywords causes failure of some tests in org.hibernate.test.collection.custom

This commit is contained in:
Zbyněk Roubalík 2012-03-08 15:40:44 +01:00
parent ab80780cf1
commit 3e99b2c440
2 changed files with 4 additions and 0 deletions

View File

@ -30,6 +30,7 @@ import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OrderColumn;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.HashMap;
import java.util.List;
@ -42,6 +43,7 @@ import org.hibernate.annotations.CollectionType;
* @author Steve Ebersole
*/
@Entity
@Table(name = "UC_BSC_USER")
public class User {
private String userName;
private IMyList<Email> emailAddresses = new MyList<Email>();

View File

@ -1,4 +1,5 @@
package org.hibernate.test.collection.custom.parameterized;
import javax.persistence.Column;
import javax.persistence.ElementCollection;
import javax.persistence.FetchType;
import javax.persistence.Id;
@ -47,6 +48,7 @@ public class Entity {
@CollectionType( type = "DefaultableList" )
@JoinColumn( name = "ENT_ID" )
@OrderColumn( name = "POS" )
@Column(name = "VAL")
public List getValues() {
return values;
}