#1 2023-02-18 13:59:30

larand54
Member
Registered: 2018-12-25
Posts: 104

DDD / ORM mapping - PODO -> TOrm

Is there an alternative to mORMot_1:s TDDRepositoryRestFactory.ComputeSQLRecord ?

It would be handy to have one, I've been searching for a while but have not found any.


Delphi-11, WIN10

Offline

#2 2023-02-18 15:37:31

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: DDD / ORM mapping - PODO -> TOrm

No there are not.

I was not convinced by the mORMot 1 implementation.
Too complex to be fair IMHO.

Offline

#3 2023-02-18 15:57:44

larand54
Member
Registered: 2018-12-25
Posts: 104

Re: DDD / ORM mapping - PODO -> TOrm

So there are no plans to make a new one then?


Delphi-11, WIN10

Offline

#4 2023-02-19 13:45:35

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: DDD / ORM mapping - PODO -> TOrm

Plan there is, time there is not yet. wink

Any ideas are welcome.

My current guess is that instead of mapping to TOrm, we could just map any class or record using our advanced mORMot 2 RTTI into the DB.
With less performance than the TOrm trick, not tied to SQLite3 any more, but perhaps with some extended features (like a non TID/Int64 primary key).

Offline

Board footer

Powered by FluxBB