HHH-7717 Wrapped "time" column names into "`time`" 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:28 -04:00 committed by brmeyer
parent 36f519d02e
commit 76bb63c74c
4 changed files with 187 additions and 181 deletions

View File

@ -29,6 +29,7 @@ import java.util.Date;
import javax.persistence.Embeddable;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Column;
import javax.validation.Valid;
import javax.validation.constraints.Future;
import javax.validation.constraints.Min;
@ -81,6 +82,7 @@ public class Tv {
@Embeddable
public static class Recorder {
@NotNull
@Column(name = "`time`")
public BigDecimal time;
}
}

View File

@ -8,6 +8,7 @@ import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Column;
/**
* @author Emmanuel Bernard
@ -20,5 +21,6 @@ public class TvMagazin {
@EmbeddedId
public TvMagazinPk id;
@Temporal(TemporalType.TIME)
@Column(name="`time`")
Date time;
}

View File

@ -28,6 +28,7 @@ public class TvProgram {
public TvMagazinPk id;
@Temporal( TemporalType.TIME )
@Column(name="`time`")
Date time;
@Column( name = "TXT", table = "TV_PROGRAM_EXT" )

View File

@ -27,6 +27,7 @@ public class TvProgramIdClass {
public Presenter presenter;
@Temporal( TemporalType.TIME )
@Column(name="`time`")
Date time;
@Column( name = "TXT", table = "TV_PROGRAM_IDCLASS" )