HHH-7717 Quoted table names in tests otherwise fail in CUBRID dialect as

these
names are reserved.
This commit is contained in:
Esen Sagynov 2012-10-26 11:16:46 -04:00 committed by brmeyer
parent f63352b0f7
commit 339b4363b1
5 changed files with 8 additions and 2 deletions

View File

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

View File

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

View File

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

View File

@ -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" />

View File

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