HHH-8072 - Fixing Sybase tests

(cherry picked from commit bd7840dd0fe6320e19a0acebbfd5156eca719a75)
This commit is contained in:
Lukasz Antoniak 2013-03-15 22:17:35 +01:00
parent 4657d306fc
commit 57870f32bf
2 changed files with 3 additions and 1 deletions

View File

@ -30,6 +30,7 @@
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MapKeyColumn;
import javax.persistence.Table;
import org.hibernate.envers.Audited;
@ -48,6 +49,7 @@ public class EmbeddableMapEntity {
@Audited
@ElementCollection
@CollectionTable(name = "EmbMapEnt_map")
@MapKeyColumn(nullable = false) // NOT NULL for Sybase
private Map<String, Component3> componentMap;
public EmbeddableMapEntity() {

View File

@ -18,7 +18,7 @@ public class ItemId implements Serializable {
private Integer version;
@ManyToOne
@JoinColumn(name = "producer")
@JoinColumn(name = "producer", nullable = false) // NOT NULL for Sybase
private Producer producer;
public ItemId() {