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
0
votes
1 answer
How to get access to the model in the view - Symfony 2
I have the following model:
class Person
{
public $name;
function __Construct( $name )
{
$this->name = $name;
}
}
I have the following controller:
class NavigationController extends Controller
{
public function…

Jimmyt1988
- 20,466
- 41
- 133
- 233
0
votes
1 answer
Java Spring, working with Domain Objects
I am building a Spring MVC web application, which uses JPA/Hibernate to store objects. I have a question which is regarded to domain objects and how to use them correctly. There are some domain objects with dependencies. An example can be a Company…

jay
- 153
- 1
- 12
0
votes
1 answer
3-tier architecture and data mapper
i have an domain object at the BAL that should have a corresponding data mapper at the DAL. as known the data mapper class will hold presistance and retrieval methods like Update, Delete, FindById, FindByName etc.
i understand how those DAL methods…

Sisyphus
- 900
- 12
- 32
0
votes
2 answers
How to apply version control on Domain Objects
I have come to understand that with domain driven design, the domain objects do not persist in my application, but are rather created and dropped on demand.
I am thinking this might possibly lead to a new situation for my application where I now…

bblue
- 545
- 5
- 24
0
votes
0 answers
Grails save() passes although objects in hasMany relationship has constraint errors
What is the correct way to handle domain save errors on domain classes under the hasMany relationship? It seems that calling save() on the owning side of the relation will return true even if there are validation errors on the owned objects.
How…

Raipe
- 786
- 1
- 9
- 22
0
votes
1 answer
Class.forName newInstance on domain object not a GroovyObject from outside of grails
I have a compiled grails project, and from a separate groovy project, I reflectively load a domain class as follows
Class clazz = Class.forName('mypack.myclass', true, Thread.currentThread().contextClassLoader)
def newDomainObject =…

Jeff Storey
- 56,312
- 72
- 233
- 406
0
votes
1 answer
How to validate domain object data before database operations?
I'll use an abstract (and simple) example to illustrate the question: CarDomainObject, as follows: (example mysql data types are listed beside the members)
class carDomainObject extends DomainObjectAbstract {
public $uid; //int
…

orourkek
- 2,091
- 15
- 22
-2
votes
2 answers
Can't figure out what's wrong with my domain object design
I have this 2 classes, and someone told me that I did it wrong.
class Employee {
private int employeeID;
private String employeeName;
private Seat employeeSeat;
}
This is for my employee class which has a relationship with the Seat class
class Seat…

Eldon Hipolito
- 704
- 1
- 8
- 24