Is that possible to define some kind of mapping in grails so CREATE TABLE is replaced with CREATE MEMORY TABLE for particular grails domains?
Is that possible to define some kind of mapping in grails so CREATE TABLE
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If you wanted to do this for all tables, you could create a custom Dialect and override
getCreateTableString()but there’s no way to know the current table name, so it can be selectively applied.But you can take the approach I suggested here: grails limited table creation. You would just override
generateSchemaCreationScript()and if you find the table(s) you’re looking for, you can replace the ‘create table’ string with ‘create memory table’.