Skip to content

Commit

Permalink
HHH-7717 Quoted table names in tests otherwise fail in CUBRID dialect as
Browse files Browse the repository at this point in the history
these
names are reserved.
  • Loading branch information
kadishmal authored and brmeyer committed Oct 26, 2012
1 parent f63352b commit 339b436
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
Expand Up @@ -31,13 +31,15 @@
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

/**
* @author Steve Ebersole
*/
@Entity
@Table(name="`Query`")
public class Query {
@Id
@GeneratedValue( generator = "increment" )
Expand Down
Expand Up @@ -4,11 +4,13 @@
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;

Expand Down
Expand Up @@ -30,11 +30,13 @@
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;
Expand Down
Expand Up @@ -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" />
Expand Down
Expand Up @@ -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>
Expand Down

0 comments on commit 339b436

Please sign in to comment.