If I am trying to find all authors Author.findAll() , is there a way to ignore the chapter relationships that are being pulled into memory as well? ...
If I am trying to find all authors Author.findAll() , is there a way to ignore the chapter relationships that are being pulled into memory as well? ...
Starting with a github repo that demonstrates how to use GORM outside of Grails, I am attempting to use dynamic finders so that I can look up a partic ...
Am a security enthusiast and a total noob to RoR. Now there is this blog i came across regarding SQL Injections in RoR with Active Records in place. ...
so i require something like the dynamic finder should change as per the condition, let me explain by code what i mean the below code find all employe ...
I worked on Spring Data JPA, it is amazing library, but you should write your Database finders as a method signature before you can use. When I looke ...
Problem: We're querying our database with a lot of entries. The overall application performance is okay. But I think it could be better if our bottlen ...
I have two domain classes (db tables) in my Grails project: I would like to find all SecUser that have not a correspondent Doctor. How can I do i ...
I found a very strange behavior in our grails application today that i want to share with you. We are using grails 2.3.11 on mysql 5.1.48. We had a ...
I know that dyanmic finders in grails only support 2 parameters eg. So to use more than 3 arguments I found this example and it works. However I ne ...
Say, for a system, I had Student and User objects, like so: I have a lot of code written against these models, and plenty of dynamic finders in it ...
What's the best way to write a Grails dynamic finder that is searching for a flag that equals 0 or is null? Example isArchived is nullable. So the ...
I have a problem where the dynamic finders used in my Ruby on Rails application almost always work, but very rarely a NoMethodError will be thrown. H ...
I have a Rails 3 Active Record finder method and i am trying update it to rails 4 patten. In Rails 3, my code looked like this In Rails 4, i tri ...
I'm trying to filter a collection in grails with findAll so I only get the instances with a certain value in his field "estado". I have something like ...
Rails 4 is getting rid of dynamic finders, so becomes Okay, not a big deal. But what is the best way to deal do with dynamic bang finders like U ...
Weird problem I've been stuck on for several hours now: I'm writing a simple user login using Rails 3, where a user logs in with their email and pass ...
I am writing a unit test for a grails controller. Here is a snippet of the code: Here is how the domain object looks like: The method in the con ...
Just like dynamic finder methods in rails, is there any way to have dynamic finder methods for associated models? Consider the following models Ho ...
I'm trying to use findOrCreateBy to search for an object or instantiate one if I can't find one that matches, but it isn't working as I expected. Thi ...
I have the following code: I was thinking about changing it to: Would there be any advantage to this? It seems like .where is more common than f ...