HHH-9737 : Miscellaneous bugs in unit tests when using non-default dialects
This commit is contained in:
parent
49fed0938e
commit
a6969ceb0a
|
@ -24,10 +24,10 @@ public class ExchangeRateKey
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
protected long date;
|
protected long date;
|
||||||
|
|
||||||
@javax.persistence.ManyToOne(fetch = FetchType.LAZY )
|
@javax.persistence.ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||||
protected Currency currency1;
|
protected Currency currency1;
|
||||||
|
|
||||||
@javax.persistence.ManyToOne(fetch = FetchType.LAZY )
|
@javax.persistence.ManyToOne(fetch = FetchType.LAZY, optional = false)
|
||||||
protected Currency currency2;
|
protected Currency currency2;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ public class ElementCollectionTests extends BaseCoreFunctionalTestCase {
|
||||||
})
|
})
|
||||||
@ElementCollection(fetch = FetchType.LAZY)
|
@ElementCollection(fetch = FetchType.LAZY)
|
||||||
@CollectionTable(name = "entity_map", joinColumns = @JoinColumn(name = "entity_id", nullable = false))
|
@CollectionTable(name = "entity_map", joinColumns = @JoinColumn(name = "entity_id", nullable = false))
|
||||||
@MapKeyColumn(name = "key", nullable = false)
|
@MapKeyColumn(name = "`key`", nullable = false)
|
||||||
@Column(name = "value", nullable = false)
|
@Column(name = "value", nullable = false)
|
||||||
public Map<ValueType, ValueType> map = new HashMap<ValueType, ValueType>();
|
public Map<ValueType, ValueType> map = new HashMap<ValueType, ValueType>();
|
||||||
|
|
||||||
|
|
|
@ -32,10 +32,12 @@ import javax.persistence.FetchType;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
import javax.persistence.JoinColumn;
|
import javax.persistence.JoinColumn;
|
||||||
import javax.persistence.JoinTable;
|
import javax.persistence.JoinTable;
|
||||||
|
import javax.persistence.Table;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
|
||||||
@Entity
|
@Entity
|
||||||
|
@Table( name = "`User`" )
|
||||||
public class User {
|
public class User {
|
||||||
private Long id;
|
private Long id;
|
||||||
private Set<Role> roles = new HashSet<Role>();
|
private Set<Role> roles = new HashSet<Role>();
|
||||||
|
|
|
@ -204,7 +204,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
|
||||||
@Entity
|
@Entity
|
||||||
public static class CustomerOrder {
|
public static class CustomerOrder {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
public Long id;
|
public Long id;
|
||||||
|
|
||||||
@OneToOne
|
@OneToOne
|
||||||
|
@ -220,7 +220,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
|
||||||
@Entity
|
@Entity
|
||||||
public static class Address {
|
public static class Address {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
public Long id;
|
public Long id;
|
||||||
|
|
||||||
public String city;
|
public String city;
|
||||||
|
@ -229,7 +229,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
|
||||||
@Entity
|
@Entity
|
||||||
public static class OrderPosition {
|
public static class OrderPosition {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
public Long id;
|
public Long id;
|
||||||
|
|
||||||
public Integer amount;
|
public Integer amount;
|
||||||
|
@ -242,7 +242,7 @@ public class EntityGraphUsingFetchGraphTest extends BaseEntityManagerFunctionalT
|
||||||
@Entity
|
@Entity
|
||||||
public static class Product {
|
public static class Product {
|
||||||
@Id
|
@Id
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue
|
||||||
public Long id;
|
public Long id;
|
||||||
|
|
||||||
public String productName;
|
public String productName;
|
||||||
|
|
Loading…
Reference in New Issue