I am trying to match the column names of this class:
class Amount{ String total
The fact is that not a single field with the Bonification class is created in the database, and not with the name that I give it, and with the names that were selected by default.
Editing comments:
- Both are domain classes;
- The data source is at
dbCreate = "update" - I dropped the table in Oracle and let Grails create it again. Bonification columns are still missing.
- I canβt
dbCreate = "create-drop" because there is data that I canβt delete right now. - I installed a new local Derby database with
dbCreate = create-drop . Still out of luck.
(PD: all other fields are saved and displayed with the names of the right column, only those two Bonification fields)
Is there any other way to do this?
Grails: 1.3.9
BD: Oracle 9
Edit for the specified DataSource.groovy (External file is available from Config.groovy grails.config.locations = [ "file:${extConfig}/${appName}Config.groovy"] )
package xx.xxx.xxxx.xxxXxxx dataSource { pooled = true dialect = "org.hibernate.dialect.Oracle10gDialect" driverClassName = "oracle.jdbc.OracleDriver" username = "XXX" password = "XXX" properties { maxActive = 100 maxIdle = 25 minIdle = 5 initialSize = 5 minEvictableIdleTimeMillis = 60000 timeBetweenEvictionRunsMillis = 60000 maxWait = 10000 validationQuery = "select 1 from dual" } } hibernate { cache.use_second_level_cache = true cache.use_query_cache = true cache.provider_class = 'net.sf.ehcache.hibernate.EhCacheProvider' } // environment specific settings environments { development { println "Including external DataSource" dataSource { dbCreate = "update" url = "jdbc:oracle:thin:@xxx.xxx.xx:xxxx:XXXX" } } }
source share