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

Adding condition to findAll and findAllBy methods
Neo4j and Mongodb as datasource in Grails
GORM (varchar .save(), non DATE): ORA-01861: literal does not match format string
GORM addTo methods not found in Spock test
spring-boot property exception while externalizing datasource properties and using actuator
Mapping hasMany relation and saving the related data
Method on class [] was used outside of a Grails application. If running in the context of a test using the mocking API or bootstrap Grails Correctly
What happens when two app servers in cluster start LiquiBase update (via Grails)?
use of mappedBy in Many to Many relationship in Grails
Domain class auto validation in grails
Grails Detached Criteria Query and “group by” and “having” clause
Script for saving large no of entries in mongodb
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?

Categories

HOME
winforms
single-sign-on
angular-material
read-eval-print-loop
bookshelf.js
yahoo-oauth
spring-jdbc
graphql
flyway4
maude-system
metatrader4
nano-server
izpack
circular-dependency
n-gram
remote-access
dtrace
designer
django-simple-history
ghc
reactive-cocoa
intentfilter
web-sql
captiveportal
jndi
rundeck
microsoft-sync-framework
subdomains
quote
bluestacks
javascriptcore
asset-pipeline
ghost4j
html5-fullscreen
fusionpbx
wixsharp
disassembling
swisscomdev
libraries
service-discovery
streamreader
ibpy
android-mediaprojection
heightmap
upstart
jedis
mu
tactic
android-cursor
nbconvert
django-scheduler
sonarlint-vs
word-vba-mac
spring-android
instant
google-web-starter-kit
paypal-express
testng-dataprovider
bgp
rvest
dataview
tform
revolution-r
django-unittest
varargs
bridge.net
directoryservices
formatjs
relocation
java-metro-framework
valuechangelistener
dataservice
ril
excel-2003
ora-00911
batterylevel
xamlparseexception
android-hardware
propertyeditor
viewswitcher
amazon-appstore
qt-jambi
data-loss
vdsp
subgurim-maps
celltable
h.323
digest-authentication
xsdobjectgen
nsviewanimation
bespin
database-management
kdbg
pascal-fc
zune

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App