Using java classes in Grails
Posted
by RN
on Stack Overflow
See other posts from Stack Overflow
or by RN
Published on 2009-05-04T16:47:33Z
Indexed on
2010/03/30
20:23 UTC
Read the original article
Hit count: 410
I have a Java\Spring\Hibernate application - complete with domain classes which are basically Hibernate POJOs
There is a piece of functionality that I think can be written well in Grails.
I wish to reuse the domain classes that I have created in the main Java app
What is the best way to do so ?
Should I write new domain classes extending the Java classes ? this sounds tacky Or Can I 'generate' controllers off the Java domain classes ?
What are the best practices around reusing Java domain objects in Grails\Groovy I am sure there must be others writing some pieces in grails\groovy
If you know about a tutorial which talks about such an integration- that would be awesome !!!
PS: I am quite a newbie in grails-groovy so may be missing the obvious. Thanks !!!
© Stack Overflow or respective owner