« Return to Thread: Grails/GORM + getter without setter

Grails/GORM + getter without setter

by Matthias Quasthoff-2 :: Rate this Message:

Reply to Author | View in Thread

Hi all,

I'd like a domain class implement some Java interface:

> class User implements hpi.its.util.afterglow.semantics.RDFResource {
> ...
> public java.net.URI getURI() {
> urlService.createURI(this)
> }
> }

But now, Hibernate complains there is no setter:

> Error creating bean with name 'sessionFactory': Invocation of init method failed; nested exception is org.hibernate.PropertyNotFoundException: Could not find a setter for property URI in class User:

How can one specify that GORM should ignore getURI? Is there something
else I'm missing?

Thanks for your help,
Matthias


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Grails/GORM + getter without setter