HHH-8072 - Fixing Sybase tests
This commit is contained in:
parent
8df33227be
commit
bd7840dd0f
|
@ -30,6 +30,7 @@ import javax.persistence.ElementCollection;
|
||||||
import javax.persistence.Entity;
|
import javax.persistence.Entity;
|
||||||
import javax.persistence.GeneratedValue;
|
import javax.persistence.GeneratedValue;
|
||||||
import javax.persistence.Id;
|
import javax.persistence.Id;
|
||||||
|
import javax.persistence.MapKeyColumn;
|
||||||
import javax.persistence.Table;
|
import javax.persistence.Table;
|
||||||
|
|
||||||
import org.hibernate.envers.Audited;
|
import org.hibernate.envers.Audited;
|
||||||
|
@ -48,6 +49,7 @@ public class EmbeddableMapEntity {
|
||||||
@Audited
|
@Audited
|
||||||
@ElementCollection
|
@ElementCollection
|
||||||
@CollectionTable(name = "EmbMapEnt_map")
|
@CollectionTable(name = "EmbMapEnt_map")
|
||||||
|
@MapKeyColumn(nullable = false) // NOT NULL for Sybase
|
||||||
private Map<String, Component3> componentMap;
|
private Map<String, Component3> componentMap;
|
||||||
|
|
||||||
public EmbeddableMapEntity() {
|
public EmbeddableMapEntity() {
|
||||||
|
|
|
@ -18,7 +18,7 @@ public class ItemId implements Serializable {
|
||||||
private Integer version;
|
private Integer version;
|
||||||
|
|
||||||
@ManyToOne
|
@ManyToOne
|
||||||
@JoinColumn(name = "producer")
|
@JoinColumn(name = "producer", nullable = false) // NOT NULL for Sybase
|
||||||
private Producer producer;
|
private Producer producer;
|
||||||
|
|
||||||
public ItemId() {
|
public ItemId() {
|
||||||
|
|
Loading…
Reference in New Issue