Questions tagged [poeaa]

POEAA is short for Patterns of Enterprise Application Architecture. An influental book by Martin Fowler it covers a number of various Design Patterns pertaining to how to organize various layers of code. A large portion of the book covers techniques to deal with Object-Relational Impedance Mismatch.

POEAA is short for Patterns of Enterprise Application Architecture. An influental book by Martin Fowler it covers a number of various Design Patterns pertaining to how to organize various layers of code. A large portion of the book covers techniques to deal with Object-Relational Impedance Mismatch.

The catalog of patterns is available online at

This tag is used to relate questions about the Design Patterns in the book.

37 questions
3
votes
1 answer

Patterns of Enterprise Application Architecture - Test Questions?

I'm doing course in "Software patterns and design" at the university and the book for the course is "Patterns of Enterprise Application Architecture - Fowler" The test in on wednesday and the teacher doesn't have any past exams i can through to see…
user538871
  • 31
  • 1
3
votes
1 answer

Java EE patterns - Registry and others - relevance

I am reading the book Patterns of enterprise application architecture. While going through the basic patterns - such as Registry pattern I am finding that possibilities that these patterns which were first published in Nov,2002 may not be the best…
Anna
  • 855
  • 2
  • 10
  • 26
3
votes
2 answers

Is it possible to implement Separated Interface in PHP?

I recently asked a question regarding the resolution of dependencies between Unit of Work and Data Mapper classes: Dependency Injection and Unit of Work pattern - (which was answered by Gabor de Mooij - thx) In PoEAA, Martin Fowler suggests using…
sunwukung
  • 2,815
  • 3
  • 41
  • 56
3
votes
2 answers

What are the differences between Object Collections, Object Aggregates, Object Associations, and Object Composition?

I'm seeing these terms used and I'm thinking my own usage of them may be incorrect. I'm wondering exactly how they are different. Object Collection - ??? Object Aggregation - ??? Object Association - ??? Object Composition - ??? It seems these terms…
prograhammer
  • 20,132
  • 13
  • 91
  • 118
3
votes
1 answer

How should a data mapper return a domain object?

In my model layer I have data mappers, domain objects, and "services" (to liase outside the model layer). I chose to implement a DomainObjectFactory and a DataMapperFactory, which has left me stuck on the DM<->DO relationship. Ideally the data…
orourkek
  • 2,091
  • 15
  • 22
2
votes
2 answers

OOP App Architecture: Which layer does a lazy loader sit in?

I am planning the implementation of an Inheritance Mapper pattern for an application component http://martinfowler.com/eaaCatalog/inheritanceMappers.html One feature it needs to have is for a domain object to reference a large list of aggreageted…
JW.
  • 4,821
  • 5
  • 43
  • 60
2
votes
2 answers

Mapping database columns to domain model with Zend Framework 2

I have been doing a fair amount of research and cannot to find an answer to this seemingly popular question. I have a domain model that contains some properties-let's say firstName and lastName-but in my database I store them as fname and lname.…
nathanjosiah
  • 4,441
  • 4
  • 35
  • 47
1
vote
0 answers

Storage for DataMappers in ASP.NET WebApplication

In Martin Fowler's "Patterns of Enterprise Application Architecture" is described approach for organizing DAL like a set of mappers for entities. Each has it's own IdentityMap storing specific entity. for example in my ASP.NET…
tabalin
  • 2,303
  • 1
  • 15
  • 27
1
vote
1 answer

Must the repository have persist functionality?

In Fowler's book "Patterns of Enterprise Application Architecture" there is no mention of persistent features of the Repository pattern. By "persistent features" I mean such features that update, save, add or delete entities. Just pure matching…
kseen
  • 359
  • 8
  • 56
  • 104
1
vote
3 answers

.NET Sample Project Design Patterns Fowler

Are there sample ASP.NET projects around using the patterns discussed in the book by Martin Fowler (Patterns of Enterprise Application Architecture)? I have downloaded the Northwind starters kit and Dinner Now, which are very good. Are there others…
Lieven Cardoen
  • 25,140
  • 52
  • 153
  • 244
1
vote
3 answers

Should all Front Classes use singleton?

Consider Martin Fowler's Patterns Of Enterprise Application Architecture, and the pattern of Front Controller: http://martinfowler.com/eaaCatalog/frontController.html Apparently, it uses the singleton pattern. Well, I have a package of classes in…
Cg Alive
  • 639
  • 1
  • 6
  • 11
1
vote
1 answer

How to temporarily circumvent domain object's creation contracts when restoring application from backup?

Our application's domain model objects have constructors with nontrivial contracts. For example an Entry object requires a Catalog object in order to be created. The problem is, these contracts have to be violated temporarily when I'm doing bulk…
brabec
  • 4,632
  • 8
  • 37
  • 63
1
vote
1 answer

Handling derived class creation using mappers in C++

I'm reading through Martin Fowler's PoEAA right now on object-relational structural patterns. As a project to do while learning them, I thought I'd build a mini eCommerce system in C++. I'm having trouble figuring out how to return the objects from…
ChickenFarmer
  • 11
  • 1
  • 2
1
vote
0 answers

Where should an objects' associated objects be restored when using the table data gateway pattern?

I have a class User which has the property address which is an instance of Address. I am using the Table Data Gateway pattern to manage the persistence of the User object. Assuming the Address class has its own Table Gateway, who should be…
nathanjosiah
  • 4,441
  • 4
  • 35
  • 47
1
vote
1 answer

Bi-directional association between Footballer Mapper and Bowler Mapper

This question is about a specific UML diagram in the book called Patterns Of Enterprise Application Architecture, by Martin Fowler. Why is there a 'bi-directional association' between Footballer Mapper and Bowler Mapper in the 'Inheritance Mapper'…
JW.
  • 4,821
  • 5
  • 43
  • 60