GRAILS-1019: Allowing expressions to be used with the 'disabled' attribute for g...
[grails.git] / test / groovy / org / codehaus / groovy / grails / orm / hibernate / AlternateTableMappingTests.groovy
blob53e3451e31726714443b32b0b9381a2954f5cb5b
1 package org.codehaus.groovy.grails.orm.hibernate;
4 class AlternateTableMappingTests extends AbstractGrailsHibernateTests {
6 void testAlternateTable() {
7 println "INVOKING TEST!!!"
8 def bookClass = ga.getDomainClass("Book")
9 println "CREATING NEW INSTANCE"
10 def book = bookClass.newInstance()
11 println "SETTING TITLE"
12 book.title = "The Stand"
13 println "SAVING BOOK"
14 book.save(true)
15 println "DONE"
18 void onSetUp() {
19 this.gcl.parseClass('''
20 class Book {
21 Long id
22 Long version
23 String title
24 static withTable = "my_books"
26 '''
30 void onTearDown() {