HHH-6770 : Oracle reserved words used as column names

This commit is contained in:
Gail Badner 2011-10-25 10:17:24 -07:00
parent 4de4bad98a
commit 505869e9d2
2 changed files with 4 additions and 0 deletions

View File

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

View File

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