jpa - How do you expose a Grails domain model using OData? -


ideally there plugin automatically exposed grails domain model odata can't see one.

there odata4j let expose pojos or jpa odata uses jax-rs , jersey under covers , i'm not sure how use inside grails application.

i use apache olingo. follow java example , modify groovy/grails such:

class datacontroller {     def action() {         // create odata handler , configure demoedmprovider , processor         def odata = odata.newinstance()         def edm = odata.createservicemetadata(new demoedmprovider(), [])         def handler = odata.createhandler(edm)         handler.register(new demoentitycollectionprocessor())          // let handler work         handler.process(request, response)         return false     } } 

Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -