data-transfer-objects Questions
3
Assumption: A local HTML/Javascript webpage that has access to file://
At the start of a drag on a draggable HTML element, in the event handler function dragStart(e), how do I add a File object so...
Su asked 30/6, 2014 at 18:55
12
Solved
I've recently overheard people saying that data transfer objects (DTOs) are an anti-pattern.
Why? What are the alternatives?
Diplostemonous asked 17/9, 2009 at 19:46
7
Solved
Given this scenario where you have "transfer objects" (POJO's with just getters/setters) which are passed by a client library to your API, what is the best way to name the transfer objects?
packag...
Quadrature asked 12/11, 2009 at 19:30
7
Solved
Is a Data Transfer Object the same as a Value Object or are they different? If they are different then where should we use a DTO and where should we use a VO?
The programming language we are talkin...
Swec asked 12/1, 2012 at 6:21
15
Solved
One part of domain-driven design that there doesn't seem to be a lot of detail on, is how and why you should isolate your domain model from your interface. I'm trying to convince my colleagues that...
Sprint asked 4/5, 2009 at 18:19
12
Solved
In MVC are the model classes DTO? If not, what are the differences and do we need both?
Memorialize asked 26/6, 2009 at 20:40
1
Solved
I am completely new to NestJS. I have seen that in NestJS, a model is created to specify the details of data, e.g. when creating a simple task manager, when we want to specify what a single task wi...
Drainage asked 18/1, 2021 at 5:45
9
Solved
I know this is probably an age-old question, but what is the better practice? Using a domain model object throughout all layers of your application, and even binding values directly to them on the ...
Cornaceous asked 21/4, 2010 at 3:14
3
Solved
I am using Vuejs along with DataTransfer to upload files asynchronously, and I want to allow multiple files to be dragged and dropped for upload at once.
I can get the first upload to happen, but ...
Aletheaalethia asked 12/4, 2019 at 20:15
2
Solved
Im struggling with a problem. Im following the documentation of NestJS. The back-end framework for NodeJS. The documentation mentions a DTO (Data Transfer Object). I created a DTO for creating a us...
Carmen asked 18/12, 2019 at 17:56
8
In which scenario can I use those design patterns in n-tier architecture?
Gastrocnemius asked 8/8, 2011 at 17:26
2
Solved
I'm using MapStruct to make dto <-> entity mapping. The same mappers are used to create and update entities from dtos. A verification of the dto's id is done to know whether a new entity must...
Derwood asked 21/2, 2017 at 12:14
2
Solved
I am trying to implement user space usb driver using libusb1.0.9. I have lpc2148 blueboard(ARM7) with me..This board is loaded with opensource USB stack/firmware by Mr. Bertrik Sikken. Now my user ...
Winner asked 8/2, 2013 at 9:10
1
Solved
This might be a pretty subjetive question, but i would to know some more opinions. I've built a Rest API service with Spring MVC, and i implemented the DTO-Domain-Entity pattern. I want to know wha...
Instructive asked 4/8, 2015 at 20:3
3
One area of question for me about DTOs/BOs is about when to pass/return the DTOs and when to pass/return the BOs.
My gut reaction tells me to always map NHibernate to the DTOs, not BOs, and alway...
Tolland asked 8/1, 2011 at 23:29
5
Solved
I have had similar questions and concerns as to how to convert between Hibernate entities and data transfer objects to be returned by a web service as are discussed in this question:
Is using data...
Gynarchy asked 29/12, 2010 at 21:59
2
Solved
I know DTO is a data transfer object and a BO is a business object. But, what does it actually mean? When should I choose one over the other?
From, what I understand DTO is just used to transfer da...
Ishmaelite asked 9/1, 2011 at 1:4
4
Solved
Could you please explain the difference between Transfer objects and Domain objects in simple terms ? And if u could give a Java example, that would be great..
Irretentive asked 18/7, 2011 at 11:21
1
Solved
We have two Spring Boot applications with a client-server architecture. The backend is configured with Spring Data REST + JPA. The front end should consume the resources exposed by the backend and ...
Output asked 18/9, 2014 at 7:32
1
Solved
For future projects i decided to use dto's to pass data to the domain layer . Here is also where i make most of the data validation .
Where should i put data formatting ?
1) In the DTOs when it...
Schoonmaker asked 5/10, 2012 at 21:50
3
Solved
I have a WCF service and have just created a DTO for a business object.
My question is where to put the mapping between the two?
A) In the DTO?
public class PersonDTO
{
[DataMember] public stri...
Prognosis asked 24/4, 2012 at 13:53
2
Solved
I have the following domain model:
public class Playlist
{
public long Id { get; set; }
public string Title { get; set; }
public virtual ICollection<Song> Songs { get; set; }
}
public cl...
Danford asked 29/6, 2011 at 16:35
2
Solved
I've been looking at a lot of WCF examples using EntityFramework and most of them seem to return some kind of POCO or DTO class to the client.
I was wondering why this was since the default Entit...
Reathareave asked 28/1, 2011 at 1:52
8
Solved
Where I work, we've gone back and forth on this subject a number of times and are looking for a sanity check. Here's the question: Should Business Objects be data containers (more like DTOs) ...
Woothen asked 25/11, 2009 at 2:23
3
Solved
I realized today that I have blindly just followed this requirement for years without ever really asking why. Today, I ran across a NotSerializableException with a model object I created from scrat...
Assizes asked 16/3, 2010 at 1:11
1 Next >
© 2022 - 2025 — McMap. All rights reserved.