The orm tag has no wiki summary.
2
votes
4answers
127 views
Should OO design, or database design, drive the coding of my @Entity classes?
I have two classes that I want related to each other in an JEE application using JPA2. In an OO world, I would say that a Chatroom has an attribute List messages. In the relational world composition ...
-4
votes
2answers
127 views
Is there really Object-relational impedance?
It is always stated that it is hard to store applications objects in relational databases - the object-relational impedance - and that is why Document databases are better.
However, is there really ...
2
votes
1answer
82 views
Basic design of a data access layer using the DataMapper pattern
I'm trying to understand the DataMapper pattern by implementing it myself for one of my domain objects.
So far, I have:
class MyDomainObject
<attributes>
<business logic methods>
...
1
vote
1answer
121 views
In Search of Automatic ORM with REST interface
I have this wish that so far Google hasn't been able to fulfill. I want to find a package (ideally in PHP, because I know PHP, but I guess that's not a hard requirement) that you point at a database, ...
1
vote
3answers
178 views
Thick models Vs. Business Logic, Where do you draw the distinction?
Today I got into a heated debate with another developer at my organization about where and how to add methods to database mapped classes. We use sqlalchemy, and a major part of the existing code base ...
2
votes
2answers
101 views
Does SRP with ORM provoke SOA?
Sorry about the many abbreviations in the title... My observation is that applications built with an object-relational mapping like Hibernate tend to follow a service-oriented architecture instead of ...
12
votes
5answers
381 views
Do ORMs enable the creation of rich domain models?
After using Hibernate on most of my projects for about 8 years, I've landed on a company that discourages its use and wants applications to only interact with the DB through stored procedures.
After ...
2
votes
0answers
99 views
phpactiverecord.org vs propelorm.org vs doctrine-project.org? [closed]
Can someone help me, in selecting the best ORM for PHP. I know some basics like Doctrine2, requires complete new syntax learning, relies on magic methods, but less code changes on modification. ...
6
votes
5answers
378 views
When not to use ORM and prefer stored procedures?
I am using PetaPoco micro-ORM. It is indeed very easy and secure to work with databases using ORM tools, but the only thing I hate is extra code. I used to put most of the code in the database itself ...
2
votes
1answer
35 views
Is there any scenario where it's useful to keep mutable properties cached in domain objects for anything else than informational purposes?
Usually in a domain model, you'll have objects, and those objects will have properties that are mutable and properties that are immutable - for instance, a instance id/name will be immutable, while ...
1
vote
2answers
107 views
Pro's/Con's to database table layout as it relates to maintenance & extensibility
Basic pseudo class layout below...
class Location(): # Class containing information about a location.
id
address_one
class CustomerLocation(Location):
customer_id
account_rep
class ...
5
votes
1answer
152 views
Immutable design with an ORM: How are sessions managed?
If I were to make a site with a mutable language like C# and use NHibernate, I would normally approach sessions with the idea of making them as create only when needed and dispose at request end. ...
2
votes
2answers
454 views
How can I design a model layer without ORM, and when should I use it?
I'm a PHP developer who started with CodeIgniter. In it, designing models was easy: it seemed like each method defined in models was the equivalent of static methods in a normal, objected-oriented ...
3
votes
1answer
90 views
Who's responsible for a master / slave switch?
We are introducing a master / slave replication schema in our web application. At certain scenarios we would prefer to explicitly direct reads to a slave and writes to the master, which to me is an ...
0
votes
4answers
177 views
To which layer does this code belong?
When I say "Revisional Data Model", I mean a data model where information is never lost: Deletes never destroy any rows, and updates always cause an insert somewhere else to preserve a row's previous ...