HHH-7717 Quoted table names in tests otherwise fail in CUBRID dialect as
these names are reserved.
This commit is contained in:
parent
f63352b0f7
commit
339b4363b1
|
@ -31,6 +31,7 @@ import javax.persistence.Entity;
|
|||
import javax.persistence.FetchType;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
import org.hibernate.annotations.GenericGenerator;
|
||||
|
||||
|
@ -38,6 +39,7 @@ import org.hibernate.annotations.GenericGenerator;
|
|||
* @author Steve Ebersole
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="`Query`")
|
||||
public class Query {
|
||||
@Id
|
||||
@GeneratedValue( generator = "increment" )
|
||||
|
|
|
@ -4,11 +4,13 @@ import javax.persistence.Column;
|
|||
import javax.persistence.Entity;
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author Emmanuel Bernard
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="`Zone`")
|
||||
public class Zone {
|
||||
private Integer id;
|
||||
|
||||
|
|
|
@ -30,11 +30,13 @@ import java.io.Serializable;
|
|||
import javax.persistence.Column;
|
||||
import javax.persistence.Entity;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.Table;
|
||||
|
||||
/**
|
||||
* @author Sharath Reddy
|
||||
*/
|
||||
@Entity
|
||||
@Table(name="`Language`")
|
||||
public class Language implements Serializable {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://www.hibernate.org/dtd/hibernate-mapping-3.0.dtd">
|
||||
|
||||
<hibernate-mapping package="org.hibernate.test.criteria">
|
||||
<class name="TestObject" table="test">
|
||||
<class name="TestObject" table="`test`">
|
||||
<id name="id">
|
||||
<column name="ID" />
|
||||
<generator class="native" />
|
||||
|
|
|
@ -59,7 +59,7 @@
|
|||
</fetch-profile>
|
||||
</class>
|
||||
|
||||
<class name="CourseOffering" table="SECTION">
|
||||
<class name="CourseOffering" table="`SECTION`">
|
||||
<id name="id" type="long">
|
||||
<generator class="increment"/>
|
||||
</id>
|
||||
|
|
Loading…
Reference in New Issue