gorm « Update « JPA Q&A





1. grails domain without saving it    stackoverflow.com

I have :

def userList = [];
if(!User.findAllByGrade(10)){
   userList.add(new User());
}else{ ..... } 


<g:each in="${userList}" var="user"> 
<!-- my big form -->
</g:each>
I need to display a form whether the user exists or not ...

2. Removing proxy part of grails domain object?    stackoverflow.com

I want to get at an actual instance of a domain object. That is, I need to serialize the object, and I'm trying to use the domain object on two sides ...