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:
parent
36f519d02e
commit
76bb63c74c
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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" )
|
||||
|
|
|
@ -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" )
|
||||
|
|
Loading…
Reference in New Issue