Automatic Marshal creation from an existing entity
See original GitHub issueI normally create database records by converting an AutoParcel entity into ContentValues
. It would be nice to have Marshal
class have a constructor that accepts an entity as a single argument. Or this could probably be solved by adding toContentValues
method to Mapper
.
Overall I feel like existing Marshal class is a complication, we already have builder pattern from AutoParcel, so it does not add much. We can make id nullable somehow so we will avoid the case when we can’t pass AutoParcel nullability issue with an id that does not exist yet.
Issue Analytics
- State:
- Created 8 years ago
- Reactions:1
- Comments:11 (5 by maintainers)
Top Results From Across the Web
Marshalling • Akka HTTP - Documentation
Marshalling is the process of converting a higher-level (object) structure into some kind of lower-level representation, often a “wire format”.
Read more >Default Marshalling Behavior - .NET Framework
When a managed class is passed to COM, the interop marshaller automatically wraps the class with a COM proxy and passes the class...
Read more >auraphp/Aura.Marshal: A data-marshaling toolset - GitHub
The Aura Marshal package is a data-object marshalling tool. It takes results from data sources and marshals those result sets into domain model...
Read more >Marshalling (computer science) - Wikipedia
Marshalling is describing an intent or process to transfer some object from a client to server, intent is to have the same object...
Read more >Top 7 tools to create an Entity Relationship Diagram (ERD ...
It's a great way to design a new relational database or make sense of and/or modify an existing one. Top 7 tools for...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thanks for the hint! I ended with just each class having a method called
contentValues()
handling that so it stays an implementation detail.That has the convenience of being very scoped.
you can create your own constructor which ignores the id