ODB C++ ORM 1.4.0 adds support for Qt, inheritance

Hi,

I am pleased to announce the release of ODB 1.4.0.

ODB is an open-source object-relational mapping (ORM) system for C++. It allows you to persist C++ objects to a relational database without having to deal with tables, columns, or SQL and without manually writing any of the mapping code.

Major new features in this release:

* Qt profile providing persistence support for Qt basic types, date-time types, smart pointers, and containers. For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
    #pragma db object
    class Employee
    {
      ...

      QString first_name_;
      QString last_name_;

      QDate born_;

      QSet<QString> emails_;
      QByteArray publicKey_;

      QSharedPointer<Employer> employer_;                                    
    };


* Support for non-polymorphic object inheritance including abstract base classes.

* Automatic mapping of C++ enumerations to database ENUM or integer types. For example, in MySQL enum color {red, green, blue}; would be mapped to ENUM('red', 'green', 'blue').

A more detailed discussion of the new features can be found in the following blog post:

http://codesynthesis.com/~boris/blog/2011/04/27/odb-1-4-0-released/

For the complete list of new features in this version see the official release announcement:

http://www.codesynthesis.com/pipermail/odb-announcements/2011/000004.html

ODB is written in portable C++ and you should be able to use it with any modern C++ compiler. In particular, we have tested this release on GNU/Linux (x86/x86-64), Windows (x86/x86-64), Mac OS X, and Solaris (x86/x86-64/SPARC) with GNU g++ 4.2.x-4.5.x, MS Visual C++ 2008 and 2010, and Sun Studio 12.

More information, documentation, source code, and pre-compiled binaries are available from:

http://www.codesynthesis.com/products/odb/

Enjoy,
Boris
Topic archived. No new replies allowed.