I want to create a domain object in different data sources based on a condition but when we instantiate a new object like new Foo().save() there is no ...
I want to create a domain object in different data sources based on a condition but when we instantiate a new object like new Foo().save() there is no ...
i am not very familiar with grails but this case is strange to me. I have create Domain object name Product and wanted to save some basic data in Boot ...
My CRM application supports multiple clients where clients are allowed to create/update schema at runtime. So, the question is:- how to create ORM e ...
I have People and Data , where People has one Data and Data belongs to People how to make a request body JSON for that Association in go gin? I am usi ...
My Grails Spring Security Core app fails at runtime after I add the following to build.gradle: This line is directly from the Grails database migra ...
Here is the two models. I want to query the Topics with each have 5 latest items. Without the limit for items, I could do this by,db.Model(&Top ...
I have a grails 3.3.10 application with a postgresql database and a table with a postgresql json type so I am using the POSTGRESQL-EXTENSIONS to creat ...
Issue: I have a criteria query where Hibernate's 2nd level cache is used in using cache(true): When this code is hit two times, 1st time it makes ...
I am using Grails version 2.4.0, java version 1.7 and oracle 12c. I want to persist the records of apiEventLogList in the database table. Instead of ...
When tableStruct have gorm.Model inside, how to get first record by id without gorm automatically adding deleted_at IS NULL? Is there such function? ...
I have a simple Grails-React app using the React profile that works fine locally but has an issue with the GraphQL plugin not being loaded when deploy ...
I've decided to build service what creates CSV report. In use: Go 1.12, GORM (as PostgreSQL ORM) So when code tries to fetch data it just freezes. ...
I have a many2many association (it is used to return JSON). It's declared in a model: It works well. I have the association returned in the json. T ...
I have a controller action to serve my react front-end. It requires the validation messages in the special format: @Transactional @Post( uri = '{ ...
I have a trait and the following domain classes: In this setup the Named.constraints are working fine for Category, but are ignored for Person. Ho ...
I would like to drop tables upon application shutdown, which I created on-the-fly during startup of the application. There are no Domain classes for t ...
I have tow domain In Book table, I stored data like id=1, name='Java'. Now I can initiate BookRef by getting Book like bellow But I want to ini ...
I am having an issue with the version column. Sometimes the version is 0 and sometime 1. If it's 0 then I can log in but when it's 1, I can't log in. ...
I am trying to implement the following SQL query in GORM: (get all the users who don't have a role matching the ROLE_INTERNAL.* pattern) I have a ...
I was trying to update a row on the database and noticed that once the row was updated, getAll stopped working correctly. All the records that were up ...