groovy

Allow autogeneration of hashCode and equals for 'database' style objects

Details

  • Type: Wish Wish
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: class generator
  • Labels:
    None
  • Number of attachments :
    0

Description

Allow the identity metadata to specify primary keys for generation of hashCode & equals and other peristent stuff...

class Customer {
[identity name, foo]

int foo
Address* addresses
PhoneNumber+ numbers
String! name
Employee? employee
Date{d| assert d > 1000} dob
}

Issue Links

Activity

Hide
Guillaume Laforge added a comment -

The GORM layer in Grails offers a similar mechanism.
It's not in Groovy per-se, but one can easily reuse GORM standalone in Groovy.

Show
Guillaume Laforge added a comment - The GORM layer in Grails offers a similar mechanism. It's not in Groovy per-se, but one can easily reuse GORM standalone in Groovy.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: