Hello. I'm new to DDD.
Let's say I have the typical entity Car
class Car : Entity
{
public double MaxSpeed { get; set; }
public Color Color { get; set; }
/* ... */
}
This entity, in my domain model, would be the root entity of an Aggregate.
Now let's say I specialize cars. I create a Ferrari, and the happy owners of Ferr...
How would you approach this problem with an ORM?
This is a hypothetical (simplified) example:
I have a table of cities:
1 - New York
2 - London
3 - San Francisco
4 - New Orleans
I have a table of scores:
(first column Unique Primary Key, second Month Code, third FK to City, fourth Score (int))
1 - 352 - 1 - 9
2 - 352 - 2 - 10
Fo...
I have an abstract base class for audit properties. For brevity say it has one property
Public MustInherit Class AbstractAuditableEntity
...
Public Property CreatedTime() As DateTimeOffset
...
End Class
And then my auditable domain objects inherit from this class
Public Class Source
Inherits AbstractAuditableEntity
...
Hello everyone! I am looking for a good ORM (i.e. Active Record) which use php extension PDO as base.Any suggestions?
...
table user:
|id|name|employee_priority_id|user_priority_id|
table priority:
|id|name|
As you can see, there are two foreign fields to the same table. But Kohana ORM default looks for a field called priority_id, which doesn't exist.
Is there a way to let Kohana ORM know that those two fields are an foreign key to that table.
...
I have a domain model in my head, and i am having problems building a SubSonic compatible db schema, it would realy help me get started if you could tell me how you would go at it for this example with 3 entities (could be SqlServer OR MySql doesn't matter to me)
Subject- representing an educational subject (e.g. Trigonometry, Calculus)...
Why are relation databases more common than object-oriented databases?
If the Object Oriented Programming paradigm is so widespread, shouldn't we see lots of OODBMS? Wouldn't they perform better than the RDBMS+OR/M?
...
I would be interested in hearing op opinions from others regarding whether which they would choose (no 'neithers' please ;), and why.
What are the downsides to using fluent? (version dependancy maybe?)
Pros, Cons, Experiences etc.
...
Delay execution is almost always a boon. But then there are cases when it’s a problem and you resort to “fetch” (in Nhibernate) to eager fetch it.
Do you know practical situations when lazy evaluation can bite you back…?
...
I am looking for an efficient sql backed collections library, for the Java programming language.
I need to do database manipulations that fit very well the Collections API, is there something that can be a good bridge for that, or must I roll my own thing.
...
Started researching Transfer ORM recently and find it pretty cool.
Today I've noticed that definitions directory contains some old files from my previous development sessions (ex. 27/08, 28/08). I have only few objects in transfer.xml for that project, but they produced few definition files each already.
Should I worry about them?
M...
I'd like to use an Active Record design pattern in a few of my projects and I'd like to have the models, validation and form generation set up for me. Symfony is really nice for this, as is the framework I use in my day job.
Is Zend Framework able to do this for me, or do I have a lot of legwork to do myself to get ZF tied in with and O...
I have finally decided to go with the Entity Framework since it has the best performance out of all the ORMs. But before I start reading and writing code I just want to know if there are any high traffic websites out there that use ORMs.
...
Found out that llblgen costs money which I cannot afford at the time since I am on a Non-Paid internship atm. Do you guys know of a comparable alternative to llblgen. I am trying to get a good Code generator for making sql queries.
...
suppose Object A has a list of Object B, and Object B must have a object C, B can be order base on C.level .
In A.hbm.xml
<bag name="listB"
table="T_B"
inverse="false"
order-by="?? what should i do here???"
>
<key column="ID_A" not-null="true"/>
<many-to-many colum...
There are similar questions to this, but I don't think anyone has asked this particular question.
Scenario:
Customer - Order (where Order has a CustomerID) - OrderPart - Part
I want a query that returns a customer with all its orders and each order with its parts.
Now I have two main choices:
Use a nested loop (which produces separ...
Having never worked with ORM before I thought I would give it a try today, I've come across my first problem that I don't know how to solve (due to my lack of understanding how ORM really works.)
Say I have three tables: Languages, Codes, and a pivot table Codes_Languages. These all have properly defined relationships in the models.
No...
Any ORM tools available for java other than Hibernate, with high scalability.
...
my team is starting a new project on asp.net mvc, and we are wondering what technology for data access to use, how do you think which one is the best, who has the best performance ?
which one is easier to use and to maintain ?
...
Is there a relatively simple way to reverse engineer a database from the command line and generate Hibernate artifacts based on the database? the only info I've been able to find on doing this requires jumping through lots of hoops with Hibernate tools that weren't designed for command line use, and ant build files.
...