Domain Objects are objects made for dealing with the domain logic at the Model layer. These objects generally simulate real (or virtual) items from real-life: Person, Post, Document, etc.
Questions tagged [domain-object]
98 questions
1
vote
2 answers
Domain model and the user interfaces
I am not sure if I am supposed to user domain objects directly in the user interface. For example I wish to design the user interface for the domain entity user User wich has a user id, name, password and a list of roles. The entity is designed in…

Albert
- 13
- 3
1
vote
2 answers
Implementing Business Objects for a WinForms MVP application
I'm building a new system from scratch and working on the design of the application. I'm looking at viable approaches for modelling my Domain objects.
Some specifics about the project - this will be a rather large data entry WinForms application,…

Ronald Zarīts
- 11,819
- 8
- 39
- 42
1
vote
1 answer
DDD naming: Domain Object
Consider certain kinds of objects involved Domain-Driven Design (DDD): Entities, Value Objects, Domain Events, and Domain Services.
Which of these are considered to be Domain Objects? And are there other names for abstractions that encapsulate a…

Timo
- 7,992
- 4
- 49
- 67
1
vote
3 answers
How to receive customized JSON Object in Spring boot Api post Method
I am trying to receive a JSON object in @RequestBody which is not known to me i.e. the JSON Object could be of any length and data.
Let's say, JSON could be as shown below
{'seqNo': 10 }
{'country': 'US', 'state': 'CA'}
{'customer': 'Alex',…

TAB
- 1,944
- 8
- 28
- 45
1
vote
0 answers
generate DO from JAXB objects
Is there any way to generate Java Domain Objects from JAXB generated objects?
I have the following file and need to generate Domain Object from it.
Actually I removed some lines from this code and need to add some water to my text for postring my…

pavlickm
- 21
- 3
1
vote
0 answers
How to handle domain object creation "inside" collections
I'm new to MVCish structure, so go easy on me, please. I'm coding my own small MVCish "framework" for understanding purposes. Bit by bit, I intend to understand how all fits together the right way.
Relying heavily on How should a model be structured…

pilger
- 11
- 2
- 3
1
vote
1 answer
Is it a good idea to extend a grails domain object?
I need similar object as grails domain object which does not need persisting. In order that I do not have to make changes in 2 places for any field changes, is it a good idea to extend the domain class so that I can get the benefits of single set of…

user2871715
- 21
- 2
1
vote
1 answer
How to respond in grails with a map of variables and domain objects without double wrapping the domain objects
In grails I am trying to return parameters back to the ui. In my controller I respond with a map. The problem I have is the domain objects for example parent and child end up double wrapped.
Map paramsdata = [
child: parent.child,
…

Luke
- 11
- 2
1
vote
1 answer
Grails validation not working
I'm trying to do some validation on a domain class object, but I get a strange exception when I call the 'validate' method. I have a form where I input some data:
Here is the code for my form:
…

Zan
- 290
- 4
- 17
1
vote
4 answers
Why do we need this special type of constructor?
public MyConstructor(MyConstructor mc){
this.setId(mc.getId());
this.setName(mc.getName());
}
Here why do we need to set the value in constructor by getting its getter method. Is there any special purpose behind this ?

user1991
- 21
- 7
1
vote
0 answers
Grails Domain Object (GORM) inheritance
I have 4 Grails domain classes ( Domain1, Domain2, Domain3, Domain4). These domain objects map to legacy tables with exactly same set of columns. To be more precise, all of these tables have personFirstName, personLastName and personPhoneNumber…

Stealth
- 1,559
- 4
- 16
- 34
1
vote
1 answer
Combine list of 2 different list objects, put the contents of objects into third object list with fields of the first 2 in Java
This is the Member:
public class Member implements Serializable {
private static final long serialVersionUID = 1L;
@EmbeddedId
private MemberPK id;
@Column(name="BUSINESS_UNIT", nullable=true, length=2)
private char…

Massman72
- 11
- 2
1
vote
1 answer
Mapping domain objects to web service proxy objects in Java
I am trying to find a way for mapping domain objects to web service proxy objects, generated by various Java web service stacks.
Both the web service (.NET) and the Java code use implementations of a particular specification. The specification is…

mahonya
- 9,247
- 7
- 39
- 68
1
vote
1 answer
Models and domain objects
I read an article talking about how to create domain objects here.
The author is explaining how to design the classes. To put itin a nutshell, you have a class per real world entity (i.e class User, Comment, Post, etc) and getters + setters (that…

Virus721
- 8,061
- 12
- 67
- 123
1
vote
3 answers
How to use mysql time functions inside grails executeupdate
I am trying to delete 1 month old records from my table using domain.executeUpdate as follows
Bugrerun.executeUpdate("delete Bugrerun b where b.complete = 1 and b.date
< date_sub(curdate(), INTERVAL 1 MONTH) ")
i am trying to use a MySQL date…

Srisudhir T
- 685
- 10
- 24