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.FetchType;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator; import org.hibernate.annotations.GenericGenerator;
@ -38,6 +39,7 @@ import org.hibernate.annotations.GenericGenerator;
* @author Steve Ebersole * @author Steve Ebersole
*/ */
@Entity @Entity
@Table(name="`Query`")
public class Query { public class Query {
@Id @Id
@GeneratedValue( generator = "increment" ) @GeneratedValue( generator = "increment" )

View File

@ -4,11 +4,13 @@ import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.GeneratedValue; import javax.persistence.GeneratedValue;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @author Emmanuel Bernard * @author Emmanuel Bernard
*/ */
@Entity @Entity
@Table(name="`Zone`")
public class Zone { public class Zone {
private Integer id; private Integer id;

View File

@ -30,11 +30,13 @@ import java.io.Serializable;
import javax.persistence.Column; import javax.persistence.Column;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Id; import javax.persistence.Id;
import javax.persistence.Table;
/** /**
* @author Sharath Reddy * @author Sharath Reddy
*/ */
@Entity @Entity
@Table(name="`Language`")
public class Language implements Serializable { public class Language implements Serializable {
private static final long serialVersionUID = 1L; 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"> <!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"> <hibernate-mapping package="org.hibernate.test.criteria">
<class name="TestObject" table="test"> <class name="TestObject" table="`test`">
<id name="id"> <id name="id">
<column name="ID" /> <column name="ID" />
<generator class="native" /> <generator class="native" />

View File

@ -59,7 +59,7 @@
</fetch-profile> </fetch-profile>
</class> </class>
<class name="CourseOffering" table="SECTION"> <class name="CourseOffering" table="`SECTION`">
<id name="id" type="long"> <id name="id" type="long">
<generator class="increment"/> <generator class="increment"/>
</id> </id>