What is the etymology / meaning of the term “value object”?

I am a programmer with a .NET / PHP background .

I recently watched a video tutorial on Flashbuilder 4 / ActionScript . One of the videos in the video device is called " Creating a Data Model Using a Value Object. " I mentioned that the “ value object ” was an unfamiliar term for me and didn’t know whether it really meant “ model ” or not, and that was a bit confusing since I can only understand it as “model”, but the name suggests that we are creating a model with a value object, assuming these are two different objects.

The trainer said he was told that this was a fairly general term in Java , also sometimes called a " transfer object ." In fact, the Wikipedia page for the “value object” is redirected to the “ data transfer object ”, and questions such as indicate that the “value object” can also be a “ mapped object in Java ”.

What is the etymology of this term and how does it relate to other data-related terms? Does this come from the Java world and at some point comes out of widespread use?

+3
source share
2 answers

, , . Misko Hevery , :

Injectable . ( Injectables , .) [...] , DI: CreditCardProcessor, MusicPlayer, MailSender, OfflineQueue.

, Newables , Injectables ( Newables Value Object, , ). Newables: Email, MailMessage, User, CreditCard, Song. , . , .

, , , http://c2.com/cgi/wiki?ValueObject

, , , . , . , . , .

, , 16 1998 . . , , , .

.equals() Java ( = Smalltalk). ( .hashCode().)

+2

Jazoon 2010, " " - ( ). , , :

, . . , 13 2010 ​​ . , 13 2010 13 2010 - .

, , . .

Eric Evan Domain Driven Design, , Java.

+2

Source: https://habr.com/ru/post/1769281/


All Articles