dorm, “The Delphi ORM” and Spring for Delphi Framework

Great news for all the dorm and Spring4D users! As you probably know, finally has been announced the official Spring framework for Delphi. There is a lot of good technology in Spring4D! So, I’m glad to announce that in a future version (hopefully, the next one) dorm, “The Delphi ORM” will use Spring4D and will become the ORM part of Spring4D. So, dorm will be part of the Spring4D framework. More info to come, so stay tuned.

#1 “dorm, the Delphi ORM” bullettin

This is the first post regarding a fast update on the last changes to the dorm project in terms of management and code. Welcome to 2 new contributors: mrbar2000 and magnomp (this is the full list http://code.google.com/p/delphi-orm/people/list) Added a PersistentStrategy for SQLite. New Google Group related to dorm. Post your questions, comments and request here! Added support for Generics Collections. No more needs of TdormCollection. You classes are completely decoupled from the framework. A brand new mapping strategy is under development. There will be “3 levels” of mapping: Config File, RTTI Attributes and “Conventions Over Configuration” (CoC) (do you wanna check the code in…
Continua a leggere →

Duck Typing in Delphi

During a new dorm feature development, I’m faced a nice problem: I want to have a generic access to a “kind” of list Let’s say: procedure DoSomething(Obj: TMyListType); begin … end; But, I want to have that generic access without a Layer Supertype object, because I need to be able to use objects from other libraries or 3rd party. In this case traditional polimorphism is not usable, so I’ve opted for an interface… procedure DoSomething(MyIntf: IMyListInterface); begin … end; Cool, but I want to have that access without any change to that object. So implement an interface is not a…
Continua a leggere →