I've managed to connect from eclipse Hibernate Tools to my MySql Database used with grails, classes mapped by GORM.
Now I'd like to perform HQL queries on the DB using the Hibernate Tools. However Hibernate Tools tells me for every table that it is not mapped.
My question: Do I really need to write all the class mappings manually into ...
I'm developing API for booking(hotels, cars, apartments, etc.) system.
Response will be in XML but how to handle requests in the best way ?
Should they be an XML requests like on Travelfusion or RESTful like on Cleartrip ?
Service is written in Grails.
...
We're developing an app (using Grails Spring Security (formerly Acegi)) in which we'll have thousands of users that span 10-15 discreet user types. In the current system, each user type equates to a "group", and the specific roles and permissions are tied to the group. The user gets all their "roles" from the group.
For example, we mi...
Hi
Im building a Grails app that will have multiple similar websites (each it's own domain name) with the same code but different design and configuration. (think of blogger)
What is the best method for using different view and even some different logic on a single app without too much hacking?
I'm new to Grails and the method I have...
What does intellij do that other IDEs dont vis-a-vis grails? Im trying to decide whether I should renew my license when it comes time.... thanx...
...
I have two Grails apps developing in the same time that needs to comunicate with each other.
How can I run both of them with grails run-app?
If the server is already started and try to run the second app I get:
Server failed to start: LifecycleException: Protocol handler initialization failed: java.net.SocketException: Unrecognized...
I have following mapping representing categories tree:
class Category {
String name
static belongsTo = [parent: Category]
static hasMany = [categories: Category]
}
The thing I want to do is to render all of the category tree and exclude field parent from rendering.
render category as JSON
renders only first level of hiera...
I was using regular datePicker from grails but I decided it was easier to use a textField with a calendar next to it and I was recommended to use Grails-UI.
My problem is that now, when I click to apply the filters, they do not work. Somehow they are not being recognized.
Any help would be greatly appreciated.
Here is the code for the...
I have developed this small app and run it on Jetty with no problems...
Bug.groovy:
package itsafeature
class Bug {
String name
String description
Priority priority
Project project
static belongsTo = Project
static constraints = {
name(size:10..150)
description(size:25..1500)
project...
I have spent the last few days attempting to integrate a Grails (version 1.3.2) application with an EJB 2.1 application that is deployed on WebSphere 6.1. Once our grails apps are in production, they will be deployed to WebSphere as well. The EJB 2.1 application is widely used across our company and, in anything except a local developm...
Hi
I use STS for Grails development. When I install a plugin the IDE does not find some core classes of the plugin.
Example:
import grails.plugins.nimble.core.AdminsService
gives "Unable to resolve class import grails.plugins.nimble.core.AdminsService" .
The project runs OK.
Also, I can't find that classes myself in the project...
Suppose I have the following Domain class:
class Book {
String title
String author
byte[] largeCoverArtImage
}
I have a list view where I do not need to display largeCoverArtImage, how can I perform the following SQL query using GORM Criteria?
select title, author from Book
...
How do I create a urlmapping that maps controller A essentially as controller B?
I thought something like this would work, but no dice.
"/my/"(controller: 'other', action: '*')
...
In my grails application, I would like to integrate a simple "Poll module" where people can vote (without authentication) with different options integrated into the homepage website. Poll Results (graphical preferably) can be shown in a different page (or in the same module frame).
Do you know if there is a grails plugin or any other si...
is there a solution to select a folderpath as comfortable like the input-file tag?
...
Hey I just installed jQuery-UI via grails install-plugin jquery-ui
And I can't make it work.
I read on the Grails Plugin documentation that I needed to update the file jQueryUiGrailsPlugin.groovy and change the JQUERYUI_VERSION to the most recent one. I went to change it and it had my same version, so now I don't know what it could be.
...
Hi,
I'm trying to test the constraints of my User domain class
class UserTests extends GrailsUnitTestCase {
protected void setUp() {
super.setUp()
mockForConstraintsTests(User)
}
void testEmailConstraint() {
// Test e-mail validation
def user = new User(userRealName: 'bob', passwd: 'foo')
...
Hi, in order to keep certain application variables I may need to change when the application is running without having to restart it, I'm thinking in implementing a Grails service and a Quartz job so every X minutes, the service reloads the entire "parameters" table - and I query the service for a parameter's value.
Now, is this a good ...
Several Grails applications, like the one I'm writing, require a /user view and /admin view that are 'dashboards', basically the user or admin lands on that page, possibly after a successful login and all the datatables and tabs are there, so they hardly ever need to navigate off that page, providing a more satisfying users experience, l...
right, basically we have a link into our system that is all lowercase but that needs to be camel cased. rather than get the other developers to fix this, I want to just make the problem go away by url magic
"/myobj/$action?/$id?"{
controller: "myObj"
}
what i am trying to do is map anything that references controller myo...