File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Grails - Exisiting Oracle Table
Joined: Feb 02, 2007
Jun 19, 2009 12:38:26
Grails is very straightforward in creating NEW tables, but I am having trouble mapping to an EXISTING table. One of the problems being that it appends id and version to each table. Maybe I need to add some entries for static mapping??? Thanks.
Joined: May 14, 2008
Jun 19, 2009 17:29:00
You can declare a custom identify for your tables, see the docs at
Then Grails will not attempt to create an id field.
Also you can turn off optimistic locking, which prevents the version field form being created:
These questions made me ask if you have read the Grails docs, and/or if you have purchased a Grails book - there are several good ones on the market.
JBoss In Action
Did you see how Paul
cut 87% off of his electric heat bill with 82 watts of micro heaters
subject: Grails - Exisiting Oracle Table
How to map a tagged item?
Web services and Grails
GRAILS, GORM custom mapping subclass in existing database.
Retrieve values from a bean in JSP
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015