-
Jul 24th, 2012, 03:12 AM
#1
Problem with selection in view
Hi all,
Here is a newbee question,
I want a list of a "domain" in a view like :
<g:each in="${contractItemInstanceList}" status="i" var="contractItemInstance">
But now i want to get a list of all contractItemInstance wit a specific customer.id I tried everything but no succes...
Here are the domain classes:
class ContractItem {
Customer customer
Space space
String contractID
....
class Customer {
String debcode
String name
....
static hasMany = [contactPersons:ContactPerson,contractItems:Contrac tItem]
in mySql it is : SELECT * FROM `contract_item` WHERE `customer_id`=someValue...
Who can help me out?
Thanks
David
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules