Have Foreign Key only in Grails Application GORM but not in the Database -


my grails application using shared legacy database. there no foreign key constraints explicitly defined in table schema. there are, logical foreign key relationships present in many of tables. not allowed change db schema (as shared db, take permission dba... ...).

is there way define hasmany, manytomany , other gorm constraints without changing existing database schema?

you can have hasmany , belongsto without foreign keys. cascade delete , other things work, wont fk violations errors if code thing violates fk.


Comments

Popular posts from this blog

Payment information shows nothing in one page checkout page magento -

tcpdump - How to check if server received packet (acknowledged) -