Questions tagged [value-objects]

A value object is a fundamental concept of domain modeling in Domain-Driven Design.

A value object is a fundamental concept of domain modeling in Domain-Driven Design.

As defined by Eric Evans in his book, Domain-Driven Design: Tackling Complexity in the Heart of Software:

An object that represents a descriptive aspect of the domain with no conceptual identity is called a VALUE OBJECT. VALUE OBJECTS are instantiated to represent elements of the design that we care about only for what they are, not who or which they are.

324 questions
0
votes
1 answer

Modeling two parallel aggregate, entity, value object hierarchies

I'm struggling with the following domain design that seams not to fit within the concepts of DDD as I understand them. In one hand, I have the Device->Sensor->Measurement hierarchy, modeled as an Aggregate with Device as as the root, Sensor as an…
pablochacin
  • 947
  • 1
  • 14
  • 35
0
votes
3 answers

How to generate Flex VO from database

We already have the database with real data inside. Now we want to build a Flex-Java on top of that. We know how to and did generate/reverse-engineering Java code from the Database using Hibernate tools. The question now is just how to generate the…
Phung D. An
  • 2,402
  • 1
  • 22
  • 23
-1
votes
1 answer

How far to push the SOLID principles in an app following DDD philosophy

I'm working on a domain-driven design PHP application that will last for years and that will have many modifications and new features. This is the first time I am developing trying to follow the different concepts of DDD, and I am also using CLEAN…
-1
votes
2 answers

What is best way to implement fix pre-define values of List?

I am working on .NET CORE 6 Renci.SshNet library. When I read files using SftpClient.ListDirectory I also read . & .. as files. I want to create list of const outside service class that just deal with this list. I want to know best approach from…
K.Z
  • 5,201
  • 25
  • 104
  • 240
-1
votes
1 answer

Handling Errors best pratices in Typescript

Since I read a few articles on error handling, i still wondering wether throw exception on a validation logic in the value object is the bad way. For instance, I have this class below which is the value object: export class UserName { private…
-1
votes
1 answer

how to define value object for file in java

I wrote a program that creates 3 files with .txt format and writes some data's into them. Now I am asked to define a value object for these files, And override the toString method, And then when I read the files Set them in to Value objects. Now I'm…
-1
votes
1 answer

DDD - Behavior with optional state: Service / Value Object?

Following DDD practices, I am running into a problem while implementing a small AES encryptor/decryptor (wrapping .NET's AesCryptoServiceProvider). public class Aes256CbcCryptor : ISymmetricCryptor { private SymmetricAlgorithm AesProvider { get;…
Timo
  • 7,992
  • 4
  • 49
  • 67
-1
votes
4 answers

Generic Value Object in C#

I have a VO class that contains several variables incl. a variable that can be of different types and to prevent casting later on I wonder if I can make that class generic. public class InputVO { public bool isEnabled; public T…
BadmintonCat
  • 9,416
  • 14
  • 78
  • 129
-2
votes
1 answer

Several Domain Drive Design questions

Lately I am trying to learn DDD and I am working on a test project. I have a few questions conserning my code. I just want to clarify that the meantions of Event in this code snippet refer to concerts, conferences, etc. It has no relation with…
1 2 3
21
22