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

store json array as json string in database

I have a business object called Schoolyear which has a flags enum at the moment: [Flags] public enum VisibleDayOfWeek : int { None = 0, Monday = 1, Tuesday = 2, Wednesday = 4, Thursday = 8, Friday = 16, Saturday = 32, …
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
3 answers

DDD Lookups as Entity or Value Object

I'm starting with Domain Driven Development and after a lot of reading I'm trying to refactor an application the DDD way. But I'm facing a fundamental problem and not sure how to solve. As an introduction some simplified tasks my application should…
0
votes
1 answer

is it possible to consider language lookup table as a value object

I have a language table for 2 fields id and language_name. Can I consider this as a value object? Ex record: 1 EN 2 DE 3 TR As soon as these values are immutable, I think I don't need to give them Ids and make it as an entity…
0
votes
1 answer

A schema in a relational database is based on association or hierarchy

If we are to map our db schema to java layer , should it be a hierarchy of domain objects or association between domain object.
Krithika Vittal
  • 1,477
  • 2
  • 16
  • 32
0
votes
1 answer

Using a VO in actionscript between classes

In my class, I built a Weather VO (Visual Object) and now need to use it for another class. How would I use it to modify the values of the text field in my second class? I attempted using getters and setters to no avail. First Page: vo=new…
0
votes
4 answers

java value object

I'm new to Java and I have to create a value object, (maybe it's called mapped object in Java) but my code doesn't seem to work, here is the value object: package ....; public class User { private int id; private int uid; …
Dennis
  • 3,448
  • 8
  • 38
  • 45
0
votes
1 answer

Mapping embedded objects in iOS Core Data

Suppose there is a web service returning a JSON response like this: { "id": "123", "name": "John Doe", "phone": { "country_code": "1", "area_code": "11", "number": "55544433" } } This is describing a Person entity, but…
0
votes
1 answer

JPA Annotated objects as regular Value Objects

I have a class that has JPA annotations.. @Embedded, @AttributesOverride, etc. Can I use this object as regular POJO / VO? What happens to these annotations then? Are they simply ignored? Or they will still be used / active?
Kevin Rave
  • 13,876
  • 35
  • 109
  • 173
0
votes
1 answer

How to implement database search in JTable if I'm using VOs and DAOs?

everyone. I decided to contribute with this topic after racking my brains exhaustively. Most part of the filtering code I got from: Search a JTable repeatedly using JTextfield…
Rasshu
  • 1,764
  • 6
  • 22
  • 53
0
votes
1 answer

DDD with webservices DTO as value object: how to handle them?

I have a "MyUnits" application that let's manage Units (like meters, kilograms, pounds, miles, km/h...). The model is complex, it supports unit compatibilities, operations, conversions, etc. I have another application (MyApp) that will need to use…
Matthieu Napoli
  • 48,448
  • 45
  • 173
  • 261
0
votes
1 answer

How should save objects in the database which are no entities

An entity "schoolyear" has configurable visible week days which are visible or not in a time planner. I see now 2 posibilites to save the visible week days. Either I make an N:M relation: N schoolyear has M VisibleWeekDays Or I put the visible…
Elisabeth
  • 20,496
  • 52
  • 200
  • 321
0
votes
1 answer

Spring : the 404 error only with the vo class as a parameter in spring controller

I'm making a site with Spring framework. the problem is the 404 error occurs only when I put the VO as a parameter. I put the VO as a @ModelAttribute in controller. I made the VO's properties with two tables columns together. I guess the problem is…
0
votes
1 answer

What do we call for these types of objects that used within Domain Model in DDD?

I have tried to find a solution to this naming problem, but I could not find a similar usage anywhere on the web. It could be either we have a design flow in the domain model, or we simply don't use the appropriate name for so called…
Spock
  • 7,009
  • 1
  • 41
  • 60
0
votes
1 answer

DDD Class that doesn't have an identity but can't be ValueObject because needs to mutate (change)

this question has a little background here.... DDD class design dilemma with Value Objects with DB id and Entities Since nobody gave me a convincing answer to my question, i am going to rephrase my question and give the people who answered the…
Pepito Fernandez
  • 2,352
  • 6
  • 32
  • 47
0
votes
2 answers

Should I add VOs into a library project when developing using flex modules?

I'm developing a module based applications in Flex and I was thinking about moving all my Value Objects (VOs) into a library project and I was wondering if any thinks this is a bad idea or have any alternative suggestions. Current Structure: I have…
Shua
  • 1,315
  • 8
  • 10
1 2 3
21
22