Comments (2)
On 04.09.2014 12:50, Stephen de Vries wrote:
In domain class:
static hasMany = [components: Component, features: Project, settings:
Setting, questions: WizardQuestion]|static marshalling = {
deep 'components,features,settings,questions'
}
|Results in XML like:
try using the format
|static marshalling = {
deep 'components','features','settings','questions'
}|
...
But the Component class is not marshalled, it just prints ID not any
of the other fieldsIf I remove multiple properties then it works as expected:
static marshalling = {
deep 'components'
}—
Reply to this email directly or view it on GitHub
#19.
from grails-marshallers.
Doh! Thanks. That also explains why: attribute 'first,second,third' wasn't working.
from grails-marshallers.
Related Issues (18)
- Add documentation on how to use the plugin with the withFormat block HOT 1
- Properties with boolean "false" or null objects do not render in XML HOT 5
- Feature Request: Allow only specific properties (like Grails "includes" param) HOT 14
- Typo I assume HOT 1
- Add HAL support
- Json order is not the order I write by means jsonwriter
- Provide examples for serializer and virtual HOT 1
- Not registering marshaller on domain object HOT 3
- Question: Why make a copy of collections during marshalling? HOT 2
- Get the Map as it where for JSON or XML HOT 10
- Add Documentation on how to use it in a unit test for a controller with usage of deep objects HOT 2
- Version 0.7 not available on grails plugins repository HOT 1
- Many-to-many mapping exception HOT 1
- Migrate to Grails 3.X
- documenation for JSON marshalling? HOT 1
- char Type marshalls to class="system.lang.Character"
- Typo in ConfigurationBuilder.groovy: ClosureOjectMarshaller should be ClosureObjectMarshaller
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from grails-marshallers.