Giter VIP home page Giter VIP logo

delphi-orm's People

Watchers

 avatar

delphi-orm's Issues

D2010

Is it supposed to work with D2010??

Original issue reported on code.google.com by [email protected] on 30 Oct 2011 at 12:44

Mapping through CoC (Convention over Configuration)

It would be nice if DORM supported CoC.
For exemple: Consider this class:
type
  TCustomer = class
  public
    property Id: Integer read FId write FId;
    property Name: String read FName write FName;
    property Age: Integer read FAge write FAge;
  end;

The framework could assume that this class is mapped to a table called 
CUSTOMER, and the properties are mapped to fields called ID, NAME and AGE. The 
only mapping would be to inform the primary key field.

For cases where the programmer doesn't want to follow this convention (maybe on 
legacy databases), he can simply do the manual mapping as we already do today

Original issue reported on code.google.com by [email protected] on 17 Nov 2011 at 6:48

  • Merged into: #6

Spliting persistence and mapping

I would implementing mapping by attributes on DORM
and i see that are mixing on dorm.cfg

{
  "persistence": {...},
  "mapping":    {...}
}

I think that this should be splitted in:

dorm.cfg
dorm.map

So i can continue using dorm.cfg to things about connection and strategies, and 
dorm.map we can use or no (when using attributes).

Original issue reported on code.google.com by [email protected] on 10 Nov 2011 at 3:02

D2010

Is it supposed to work with D2010??

Original issue reported on code.google.com by [email protected] on 30 Oct 2011 at 12:44

Attribute mapping

Support for mapping classes using attributes instead of an external json 
mapping.

Maybe there will be situations where a mapping is dificult/impossible to 
express via attributes, but for these cases the programmer can always use the 
standard json mapping. As for the most cases, I think a good set of attributes 
will do the job much better than the json mapping.

For exemple, this class:

type
  TCustomer = class
  private
    FId: Integer;
    FName: String;
    FAge: Integer;
  public
    property Id: Integer read FId write FId;
    property Name: String read FName write FName;
    property Age: Integer read FAge write FAge;
  end;

Could be mapped this way:
type
  [Table('CUSTOMER')]
  TCustomer = class
  private
    [PrimaryKey]
    [Column('ID')]
    FId: Integer;
    [Column('NAME')]
    FName: String;
    [Column('AGE')]
    FAge: Integer;
  public
    property Id: Integer read FId write FId;
    property Name: String read FName write FName;
    property Age: Integer read FAge write FAge;
  end;

And if http://code.google.com/p/delphi-orm/issues/detail?id=5 got implemented, 
the class with it's complete mapping would be reduced to:
type
  TCustomer = class
  private
    [PrimaryKey]
    FId: Integer;
    FName: String;
    FAge: Integer;
  public
    property Id: Integer read FId write FId;
    property Name: String read FName write FName;
    property Age: Integer read FAge write FAge;
  end;

Original issue reported on code.google.com by [email protected] on 17 Nov 2011 at 6:58

3Tier system

How u dont have a forum yet, i dont know where put this message, then i will 
put here ok?

I whould like see a 3tier system sample. Can you show us?

Remove this message and send me a mail if u think better!

Original issue reported on code.google.com by [email protected] on 7 Nov 2011 at 12:06

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.