database - In Grails... How to union two tables in a single controller? -
i have 2 tables, installed plugin in grails.
columns in t1 are: a1, b1, c1, d1
columns in t2 are: a2, b2, c2, d2
i need select columns a*, b*, c*, d* (=1,2) both tables in controller union , sort of them column d, how can that?
furthermore, how can pagination work treating result single table?
pls help. appreciate!!
not sure if helpful or not. hit similar (though not exact) problem in past, , solved creating view. can create view union , select, , create new domain class maps view.
you won't able use grails auto create table, limitation.
Comments
Post a Comment