HHH-7717 Wrapped additional "type" column names into "`type`" as they
can be reserved in some dialects which would cause a test failure.
This commit is contained in:
parent
76bb63c74c
commit
d41b800bb0
|
@ -26,6 +26,7 @@ package org.hibernate.test.annotations.collectionelement.embeddables.withcustome
|
|||
import javax.persistence.Embeddable;
|
||||
import javax.persistence.EnumType;
|
||||
import javax.persistence.Enumerated;
|
||||
import javax.persistence.Column;
|
||||
|
||||
/**
|
||||
* @author Steve Ebersole
|
||||
|
@ -44,6 +45,7 @@ public class Location {
|
|||
|
||||
@Enumerated(EnumType.STRING)
|
||||
// @Column(columnDefinition = "VARCHAR(32)")
|
||||
@Column(name = "`type`")
|
||||
private Type type;
|
||||
|
||||
public Location() {
|
||||
|
|
|
@ -3,6 +3,7 @@ package org.hibernate.test.annotations.embedded;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Column;
|
||||
|
||||
/**
|
||||
* @author Emmanuel Bernard
|
||||
|
@ -10,6 +11,7 @@ import javax.persistence.Id;
|
|||
@Entity
|
||||
public class CorpType {
|
||||
private Integer id;
|
||||
@Column(name = "`type`")
|
||||
private String type;
|
||||
|
||||
@Id
|
||||
|
|
Loading…
Reference in New Issue