1 package org
.codehaus
.groovy
.grails
.orm
.hibernate
3 import javax
.sql
.DataSource
6 * Created by IntelliJ IDEA.
10 * To change this template use File | Settings | File Templates.
12 class TablePerSubclassWithCustomTableNameTests
extends AbstractGrailsHibernateTests
{
14 protected void onSetUp() {
26 class Dog extends Animal {
32 class Cat extends Animal {
43 void testGeneratedTables() {
44 DataSource ds
= applicationContext
.getBean('dataSource')
48 con
= ds
.getConnection()
49 def statement
= con
.prepareStatement("select * from myDogs")
51 statement
= con
.prepareStatement("select * from myCats")