gorm


Does the multiple datasource feature of Grails 2.0 support relations?


I'm trying to support some legacy tables and I was able to create a domain that uses a separate datasource of those legacy tables.
However, when I try to use that domain from the separate datasource in a hasMany, it fails.
Is it possible to relate hasMany to a domain on a different datasource?
Unfortunately you can not have GORM automatically manage the association across multiple datasources. However, that said you can quite easily write the code that will accomplish what you are looking for and address some of the underlying performance issues with GORM at the same time. There is a very good example of this already.

Related Links

Does the multiple datasource feature of Grails 2.0 support relations?
How to avoid ImprovedNamingStrategy in joinTable in Grails
Grails 2 Show transient property that is an alias for id column
How to save GORM class with composite id made from its own field?
Grails - 2 domains and 1 form create/update/edit issues
Is there a belongsTo mixed syntax for GORM many-to-many and back-reference
Why do these Gradle tests throw exceptions?
In grails 2 when using multiple datasources, can I specify which datasource a criteria should use?
GORM methods are not accessible in Domain and Service classes
How to initialize the domain class properties with the values of another Domain class properties in grails
Grails Domain Embedded
How to get count of all items in a criteria GORM query
'Requested bean is currently in creation' on a domain object
GORM 1:N Association Cascades Delete Without belongsTo!
GNUstep - Can GORM open Interface Builder-created NIB files or not?
How to Alphabetically retrieve members of a list?

Categories

HOME
yii2
include
dot
xmpp
adb
filtering
rubygems
cakephp-2.5
google-project-tango
angular-ui-bootstrap
facebook-messenger-bot
iggrid
python-unittest
gnupg
reveal.js
rascal
resize
n-gram
remote-access
django-admin
pythonanywhere
karma-jasmine
jprofiler
lldb
jtextfield
functional-testing
google-search-api
php-openssl
fish
pepper
bootstrap-duallistbox
brunch
windows-error-reporting
spring-mybatis
maquette
grails-3.1
catch-all
mozilla
swift3.0.2
hue
nand2tetris
isbn
scorm
veracode
mcafee
spring-android
radtreelist
moveit
qcustomplot
ready-api
captivenetwork
tform
tcpserver
jms2
metaclass
python-3.2
sortedlist
apache-commons-net
python-green
java.util.concurrent
onactivityresult
article
marmalade
resty-gwt
multiprocessor
quantlib-swig
dotnetnuke-5
spring-validator
distutils
selected
trusted
cisco-jtapi
errai
jspinclude
qtkit
osql
gnu-prolog
f#-powerpack
subviews
blitz++
mozilla-prism
nsviewanimation
firefox4
text-coloring
multiple-languages

Resources

Encrypt Message