grails-domain-class
Grails, how to find by a record by its foreign key
I have two domains that are a part of a one-to-many relations ship.I was wondering how i can query the child for the parents FK?bellow is the psue开发者_JS百科do-code for parent/child[详细]
2023-03-25 23:41 分类:问答Grails Domain Create Association Table
I have a question about creating an associative table, in grails, to reconcile a many-to-many relationship.The setup is this:[详细]
2023-03-25 03:57 分类:问答grails - forcing select list values to be saved as date to oracle db
I\'m working on an app to track sessions for a conference and want to allow the user to select dates from a drop down but have the dates stored as a date in the oracle database.I\'ve tried using the d[详细]
2023-03-24 20:34 分类:问答Grails domain version value as part of JSON
In a edit page, I am passing the domain object as JSON object to be manipulated at client side using jQuery.[详细]
2023-03-22 16:08 分类:问答please help with null exception when adding data with grails
I am trying to add data to a database, in grails but get this error: Error 500: Executing action [getData] of controller [mgr.CollectDataEntryController] caused exception: groovy.lang.MissingMethodEx[详细]
2023-03-22 05:39 分类:问答How to handle externally stored default values in Domain Class
I want to be able to set default values for some fields in my domain classes. Till now I had a class which stored a Map of settings for my whole project, with a task in mind to move this map into a re[详细]
2023-03-22 00:58 分类:问答Grails splitting the application
Is there any advantages or any available pattern where in we create just the Domain classes and jar it, to be used in different grails applications applic开发者_开发知识库able.The standard approach fo[详细]
2023-03-19 17:09 分类:问答How do I map entities in GORM when pk of one references pk of another
What is the best way to map two entities in GORM when the primary key of one table is also a foreign key from another table. For ex:[详细]
2023-03-13 05:20 分类:问答Grails: find domain class by name
I want to allow users to traverse the domain classes and print out dumps of stuff.My frist problem: assuming the following works just fine:[详细]
2023-03-12 11:39 分类:问答validate grails domain classes against a database
What\'s the best way to validate that the grails domain classes are in sync with a database? It\'s legacy database and i can\'t build it开发者_如何转开发 from the domain classes. An interesting idea h[详细]
2023-03-12 10:20 分类:问答