In Grails, how to declare a SQL Server schema name for a domain class?

I recently started reading on Grails and would like to use SQL Server security schemas to group tables generated by GORM. However, I cannot find a link explaining how to complete this task. I am also new to Hibernate and would like to know if this is possible. Thanks.

+5
source share
2 answers

This can be done when I explicitly specify the mapping in the domain class as described here :

class Book {
    static mapping = {
        table name:"books", schema:"dbo"
    }
}
+12
source

, , , , Grails 1.3.4 , .

- : "dbo.books", ; GORM , "." PostgreSQL ( ) , , .

0

All Articles