HHH-7159 Database keywords causes failure of some tests in org.hibernate.test.collection.custom
This commit is contained in:
parent
ab80780cf1
commit
3e99b2c440
|
@ -30,6 +30,7 @@ import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.OneToMany;
|
import javax.persistence.OneToMany;
|
||||||
import javax.persistence.OrderColumn;
|
import javax.persistence.OrderColumn;
|
||||||
|
import javax.persistence.Table;
|
||||||
import javax.persistence.Transient;
|
import javax.persistence.Transient;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
@ -42,6 +43,7 @@ import org.hibernate.annotations.CollectionType;
|
||||||
* @author Steve Ebersole
|
* @author Steve Ebersole
|
||||||
*/
|
*/
|
||||||
@Entity
|
@Entity
|
||||||
|
@Table(name = "UC_BSC_USER")
|
||||||
public class User {
|
public class User {
|
||||||
private String userName;
|
private String userName;
|
||||||
private IMyList<Email> emailAddresses = new MyList<Email>();
|
private IMyList<Email> emailAddresses = new MyList<Email>();
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
package org.hibernate.test.collection.custom.parameterized;
|
package org.hibernate.test.collection.custom.parameterized;
|
||||||
|
import javax.persistence.Column;
|
||||||
import javax.persistence.ElementCollection;
|
import javax.persistence.ElementCollection;
|
||||||
import javax.persistence.FetchType;
|
import javax.persistence.FetchType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
@ -47,6 +48,7 @@ public class Entity {
|
||||||
@CollectionType( type = "DefaultableList" )
|
@CollectionType( type = "DefaultableList" )
|
||||||
@JoinColumn( name = "ENT_ID" )
|
@JoinColumn( name = "ENT_ID" )
|
||||||
@OrderColumn( name = "POS" )
|
@OrderColumn( name = "POS" )
|
||||||
|
@Column(name = "VAL")
|
||||||
public List getValues() {
|
public List getValues() {
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue