HHH-6770 : Oracle reserved words used as column names
This commit is contained in:
parent
4de4bad98a
commit
505869e9d2
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
package org.hibernate.test.annotations.beanvalidation;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Embeddable;
|
||||
import javax.validation.constraints.Max;
|
||||
import javax.validation.constraints.NotNull;
|
||||
|
@ -46,6 +47,7 @@ public class Button {
|
|||
this.name = name;
|
||||
}
|
||||
|
||||
@Column(name = "fld_size")
|
||||
@Max(10)
|
||||
public Integer getSize() {
|
||||
return size;
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
package org.hibernate.test.annotations.override;
|
||||
import java.util.Collection;
|
||||
import javax.persistence.CascadeType;
|
||||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.ManyToMany;
|
||||
|
@ -15,6 +16,7 @@ public class PhoneNumber {
|
|||
this.id = id;
|
||||
}
|
||||
|
||||
@Column(name="fld_number")
|
||||
int number;
|
||||
|
||||
@ManyToMany(mappedBy = "contactInfo.phoneNumbers", cascade = CascadeType.ALL)
|
||||
|
|
Loading…
Reference in New Issue