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:
Esen Sagynov 2012-10-26 11:15:44 -04:00 committed by brmeyer
parent 76bb63c74c
commit d41b800bb0
2 changed files with 108 additions and 104 deletions

View File

@ -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() {

View File

@ -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