hibernate - Grails Temporary Domain -
is there best way solving using grails-
- creating "temporary" table based on multiple tables when user login (session created).
- it should possible access "temporary" table controllers
- when http session ends, temporary table should dropped / truncated
- gorm features should available
- truncate data , insert new when actions happen during http session. (the data dynamic)
i guess can solved somehow domain class. haven't succeeded finding example.
the base of data construction "temporary" table complex (performance) generate , used often. , important data can access owner (the user).
although there grails plugin can create domain classes dynamically , there blog burt explains how can create dynamic domain classes. these have own limitations , not suggested used in production environment.
one thing can create domain class stores session object. unique per session , can insert/update entries using session object. each finder call have add condition including session object also. when session gets invalidated can delete user specific data table.
Comments
Post a Comment